OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3108cf0
)
sh: module_alloc() should be using vmalloc_exec().
author
Paul Mundt
<lethal@linux-sh.org>
Mon, 4 Aug 2008 04:34:29 +0000
(13:34 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 4 Aug 2008 04:34:29 +0000
(13:34 +0900)
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>
arch/sh/kernel/module.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/module.c
b/arch/sh/kernel/module.c
index
6ba2b79
..
c430810
100644
(file)
--- 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);
}