diff --git a/kernel/module.c b/kernel/module.c index d25e359279ae8a42056bad59e3d44056c4b6fe89..eab08274ec9bf9a1e5b8c83de0f925da0aeaf761 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3274,8 +3274,8 @@ static int load_module(struct load_info *info, const char __user *uargs, /* module_bug_cleanup needs module_mutex protection */ mutex_lock(&module_mutex); module_bug_cleanup(mod); - mutex_unlock(&module_mutex); ddebug_cleanup: + mutex_unlock(&module_mutex); dynamic_debug_remove(info->debug); synchronize_sched(); kfree(mod->args);