projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
module: set MODULE_STATE_GOING state when a module fails to load
[linux-2.6-block.git]
/
kernel
/
module.c
diff --git
a/kernel/module.c
b/kernel/module.c
index a4fa44a652a75794c4d63f03d25ddc2cefaea63a..b34235082394b862da7b24e6e9582e6ecaa1dae6 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-3991,6
+3991,7
@@
static int load_module(struct load_info *info, const char __user *uargs,
MODULE_STATE_GOING, mod);
klp_module_going(mod);
bug_cleanup:
+ mod->state = MODULE_STATE_GOING;
/* module_bug_cleanup needs module_mutex protection */
mutex_lock(&module_mutex);
module_bug_cleanup(mod);