]> err.no Git - linux-2.6/commitdiff
sh: module_alloc() should be using vmalloc_exec().
authorPaul Mundt <lethal@linux-sh.org>
Mon, 4 Aug 2008 04:34:29 +0000 (13:34 +0900)
committerPaul 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

index 6ba2b79b826b64c903d4d08d0cd42c895971ecc0..c43081039dd571ab3992628830d5cd171a3d23fd 100644 (file)
@@ -37,7 +37,8 @@ void *module_alloc(unsigned long size)
 {
        if (size == 0)
                return NULL;
-       return vmalloc(size);
+
+       return vmalloc_exec(size);
 }