Skip to content

Commit

Permalink
Merge tag 'modules-for-v5.15-rc6' of git://git.kernel.org/pub/scm/lin…
Browse files Browse the repository at this point in the history
…ux/kernel/git/jeyu/linux

Pull modules fix from Jessica Yu:

 - Build fix for cfi_init() when CONFIG_MODULE_UNLOAD=n

* tag 'modules-for-v5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
  module: fix clang CFI with MODULE_UNLOAD=n
  • Loading branch information
torvalds committed Oct 13, 2021
2 parents f4d0cc4 + 0d67e33 commit 348949d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,8 +4489,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
Expand Down

0 comments on commit 348949d

Please sign in to comment.