浏览代码

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>
Paul Mundt 17 年之前
父节点
当前提交
4b59c97325
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/sh/kernel/module.c

+ 2 - 1
arch/sh/kernel/module.c

@@ -37,7 +37,8 @@ void *module_alloc(unsigned long size)
 {
 {
 	if (size == 0)
 	if (size == 0)
 		return NULL;
 		return NULL;
-	return vmalloc(size);
+
+	return vmalloc_exec(size);
 }
 }