diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 06:34:29 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-08-04 06:34:29 +0200 |
commit | 4b59c97325371d51275bdb50523fa98a301615b0 (patch) | |
tree | 698e6f8e32bd03f7a40a4d1185548705c06fcf4f | |
parent | sh: Fix up __bug_table handling in module loader. (diff) | |
download | linux-4b59c97325371d51275bdb50523fa98a301615b0.tar.xz linux-4b59c97325371d51275bdb50523fa98a301615b0.zip |
sh: module_alloc() should be using vmalloc_exec().
SH-X2 extended mode TLB allows for toggling of the exec bit, so make
sure we are using the right protection bits for module space there
also.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 6ba2b79b826b..c43081039dd5 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c @@ -37,7 +37,8 @@ void *module_alloc(unsigned long size) { if (size == 0) return NULL; - return vmalloc(size); + + return vmalloc_exec(size); } |