Message ID | 20210107140828.298863602@linuxfoundation.org |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/kernel/module.c b/kernel/module.c index 2f695b6e1a3e0..dcfc811d9ae2d 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3589,6 +3589,7 @@ static int load_module(struct load_info *info, const char __user *uargs, return do_init_module(mod); bug_cleanup: + mod->state = MODULE_STATE_GOING; /* module_bug_cleanup needs module_mutex protection */ mutex_lock(&module_mutex); module_bug_cleanup(mod);