diff options
Diffstat (limited to 'arch/x86/kernel/module.c')
-rw-r--r-- | arch/x86/kernel/module.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c index e0bc186d7501..8f2956091735 100644 --- a/arch/x86/kernel/module.c +++ b/arch/x86/kernel/module.c | |||
@@ -239,11 +239,13 @@ int module_finalize(const Elf_Ehdr *hdr, | |||
239 | apply_paravirt(pseg, pseg + para->sh_size); | 239 | apply_paravirt(pseg, pseg + para->sh_size); |
240 | } | 240 | } |
241 | 241 | ||
242 | return module_bug_finalize(hdr, sechdrs, me); | 242 | /* make jump label nops */ |
243 | jump_label_apply_nops(me); | ||
244 | |||
245 | return 0; | ||
243 | } | 246 | } |
244 | 247 | ||
245 | void module_arch_cleanup(struct module *mod) | 248 | void module_arch_cleanup(struct module *mod) |
246 | { | 249 | { |
247 | alternatives_smp_module_del(mod); | 250 | alternatives_smp_module_del(mod); |
248 | module_bug_cleanup(mod); | ||
249 | } | 251 | } |