From: Paul Mundt Date: Mon, 4 Aug 2008 04:34:29 +0000 (+0900) Subject: sh: module_alloc() should be using vmalloc_exec(). X-Git-Tag: v2.6.27-rc2~42^2~8 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=4b59c97325371d51275bdb50523fa98a301615b0;p=safe%2Fjmp%2Flinux-2.6 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 --- diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 6ba2b79..c430810 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); }