diff options
Diffstat (limited to 'arch/sh/kernel/module.c')
| -rw-r--r-- | arch/sh/kernel/module.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 5482e65375a9..c43081039dd5 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/moduleloader.h> | 27 | #include <linux/moduleloader.h> |
| 28 | #include <linux/elf.h> | 28 | #include <linux/elf.h> |
| 29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
| 30 | #include <linux/bug.h> | ||
| 30 | #include <linux/fs.h> | 31 | #include <linux/fs.h> |
| 31 | #include <linux/string.h> | 32 | #include <linux/string.h> |
| 32 | #include <linux/kernel.h> | 33 | #include <linux/kernel.h> |
| @@ -36,7 +37,8 @@ void *module_alloc(unsigned long size) | |||
| 36 | { | 37 | { |
| 37 | if (size == 0) | 38 | if (size == 0) |
| 38 | return NULL; | 39 | return NULL; |
| 39 | return vmalloc(size); | 40 | |
| 41 | return vmalloc_exec(size); | ||
| 40 | } | 42 | } |
| 41 | 43 | ||
| 42 | 44 | ||
| @@ -145,9 +147,10 @@ int module_finalize(const Elf_Ehdr *hdr, | |||
| 145 | const Elf_Shdr *sechdrs, | 147 | const Elf_Shdr *sechdrs, |
| 146 | struct module *me) | 148 | struct module *me) |
| 147 | { | 149 | { |
| 148 | return 0; | 150 | return module_bug_finalize(hdr, sechdrs, me); |
| 149 | } | 151 | } |
| 150 | 152 | ||
| 151 | void module_arch_cleanup(struct module *mod) | 153 | void module_arch_cleanup(struct module *mod) |
| 152 | { | 154 | { |
| 155 | module_bug_cleanup(mod); | ||
| 153 | } | 156 | } |
