diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 222aba4aa960..f0411a271765 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -3481,6 +3481,8 @@ static noinline int do_init_module(struct module *mod) | |||
3481 | if (!mod->async_probe_requested && (current->flags & PF_USED_ASYNC)) | 3481 | if (!mod->async_probe_requested && (current->flags & PF_USED_ASYNC)) |
3482 | async_synchronize_full(); | 3482 | async_synchronize_full(); |
3483 | 3483 | ||
3484 | ftrace_free_mem(mod, mod->init_layout.base, mod->init_layout.base + | ||
3485 | mod->init_layout.size); | ||
3484 | mutex_lock(&module_mutex); | 3486 | mutex_lock(&module_mutex); |
3485 | /* Drop initial reference. */ | 3487 | /* Drop initial reference. */ |
3486 | module_put(mod); | 3488 | module_put(mod); |