diff --git a/kernel/module.c b/kernel/module.c index 8257110bf599cf3fe0a39d21ff285da5d3483d21..d3aaec62c1423ae08e89f38d779d6a4454220ad4 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1021,6 +1021,8 @@ SYSCALL_DEFINE2(delete_module, const char __user *, name_user, strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module)); free_module(mod); + /* someone could wait for the module in add_unformed_module() */ + wake_up_all(&module_wq); return 0; out: mutex_unlock(&module_mutex);