Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17008
b: refs/heads/master
c: fb16979
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jan 9, 2006
1 parent ba66f4a commit 84a3010
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eea8b54dc0dceb740da697a89c54d20dde340306
refs/heads/master: fb1697933a03ec47d794b38e2a4e3ccc2463fd22
10 changes: 5 additions & 5 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,15 @@ static void module_unload_free(struct module *mod)
}

#ifdef CONFIG_MODULE_FORCE_UNLOAD
static inline int try_force(unsigned int flags)
static inline int try_force_unload(unsigned int flags)
{
int ret = (flags & O_TRUNC);
if (ret)
add_taint(TAINT_FORCED_MODULE);
add_taint(TAINT_FORCED_RMMOD);
return ret;
}
#else
static inline int try_force(unsigned int flags)
static inline int try_force_unload(unsigned int flags)
{
return 0;
}
Expand All @@ -524,7 +524,7 @@ static int __try_stop_module(void *_sref)

/* If it's not unused, quit unless we are told to block. */
if ((sref->flags & O_NONBLOCK) && module_refcount(sref->mod) != 0) {
if (!(*sref->forced = try_force(sref->flags)))
if (!(*sref->forced = try_force_unload(sref->flags)))
return -EWOULDBLOCK;
}

Expand Down Expand Up @@ -609,7 +609,7 @@ sys_delete_module(const char __user *name_user, unsigned int flags)
/* If it has an init func, it must have an exit func to unload */
if ((mod->init != NULL && mod->exit == NULL)
|| mod->unsafe) {
forced = try_force(flags);
forced = try_force_unload(flags);
if (!forced) {
/* This module can't be removed */
ret = -EBUSY;
Expand Down

0 comments on commit 84a3010

Please sign in to comment.