diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 3e0e19763d24..4d2b82e610e2 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -3557,6 +3557,7 @@ static int load_module(struct load_info *info, const char __user *uargs, | |||
3557 | mutex_lock(&module_mutex); | 3557 | mutex_lock(&module_mutex); |
3558 | /* Unlink carefully: kallsyms could be walking list. */ | 3558 | /* Unlink carefully: kallsyms could be walking list. */ |
3559 | list_del_rcu(&mod->list); | 3559 | list_del_rcu(&mod->list); |
3560 | mod_tree_remove(mod); | ||
3560 | wake_up_all(&module_wq); | 3561 | wake_up_all(&module_wq); |
3561 | /* Wait for RCU-sched synchronizing before releasing mod->list. */ | 3562 | /* Wait for RCU-sched synchronizing before releasing mod->list. */ |
3562 | synchronize_sched(); | 3563 | synchronize_sched(); |