Merge 348949d9a4 ("Merge tag 'modules-for-v5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux") into android-mainline

Steps on the way to 5.15-rc6

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I1ceab8a8f318fd7bb232081930a49f2bf3bc10fa
This commit is contained in:
Greg Kroah-Hartman
2021-10-14 10:22:24 +02:00

View File

@@ -4491,8 +4491,10 @@ static void cfi_init(struct module *mod)
/* Fix init/exit functions to point to the CFI jump table */
if (init)
mod->init = *init;
#ifdef CONFIG_MODULE_UNLOAD
if (exit)
mod->exit = *exit;
#endif
cfi_module_add(mod, module_addr_min);
#endif