mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
ANDROID: modules: cfi cleanup for module load failure
Cleanup cfi shadow for failure in module loading, to avoid causing warnings. Bug: 172542186 Change-Id: I1de7ffa7d884c8e46891b8bbc8196ec0d2cef0d6 Signed-off-by: Mayank Grover <groverm@codeaurora.org>
This commit is contained in:
parent
6f6b3fb470
commit
4e7a62687a
1 changed files with 2 additions and 0 deletions
|
|
@ -4002,6 +4002,8 @@ static int load_module(struct load_info *info, const char __user *uargs,
|
|||
mutex_unlock(&module_mutex);
|
||||
|
||||
ddebug_cleanup:
|
||||
/* Clean up CFI for the module. */
|
||||
cfi_cleanup(mod);
|
||||
ftrace_release_mod(mod);
|
||||
dynamic_debug_remove(mod, info->debug);
|
||||
synchronize_rcu();
|
||||
|
|
|
|||
Loading…
Reference in a new issue