diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 0351625767b1..35e1b1f859d7 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -1121,6 +1121,9 @@ static void free_module(struct module *mod) | |||
1121 | if (mod->percpu) | 1121 | if (mod->percpu) |
1122 | percpu_modfree(mod->percpu); | 1122 | percpu_modfree(mod->percpu); |
1123 | 1123 | ||
1124 | /* Free lock-classes: */ | ||
1125 | lockdep_free_key_range(mod->module_core, mod->core_size); | ||
1126 | |||
1124 | /* Finally, free the core (containing the module structure) */ | 1127 | /* Finally, free the core (containing the module structure) */ |
1125 | module_free(mod, mod->module_core); | 1128 | module_free(mod, mod->module_core); |
1126 | } | 1129 | } |