Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e7a6268 authored by Mayank Grover's avatar Mayank Grover
Browse files

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: default avatarMayank Grover <groverm@codeaurora.org>
parent 6f6b3fb4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();