Skip to content

Commit

Permalink
mn10300: Fix up __bug_table handling in module loader.
Browse files Browse the repository at this point in the history
Platforms that are using GENERIC_BUG must call in to
module_bug_finalize()/module_bug_cleanup() in order to scan modules with
their own __bug_table sections that are otherwise unaccounted.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Paul Mundt authored and Linus Torvalds committed Aug 5, 2008
1 parent b13ad6f commit 18f6db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/mn10300/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/bug.h>

#if 0
#define DEBUGP printk
Expand Down Expand Up @@ -195,12 +196,13 @@ int module_finalize(const Elf_Ehdr *hdr,
const Elf_Shdr *sechdrs,
struct module *me)
{
return 0;
return module_bug_finalize(hdr, sechdrs, me);
}

/*
* finish clearing the module
*/
void module_arch_cleanup(struct module *mod)
{
module_bug_cleanup(mod);
}

0 comments on commit 18f6db9

Please sign in to comment.