aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/module.c')
-rw-r--r--arch/arm64/kernel/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
index 71530e080ecc..46e643e30708 100644
--- a/arch/arm64/kernel/module.c
+++ b/arch/arm64/kernel/module.c
@@ -34,7 +34,7 @@ void *module_alloc(unsigned long size)
34 module_alloc_end = MODULES_END; 34 module_alloc_end = MODULES_END;
35 35
36 p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base, 36 p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
37 module_alloc_end, gfp_mask, PAGE_KERNEL_EXEC, 0, 37 module_alloc_end, gfp_mask, PAGE_KERNEL, 0,
38 NUMA_NO_NODE, __builtin_return_address(0)); 38 NUMA_NO_NODE, __builtin_return_address(0));
39 39
40 if (!p && IS_ENABLED(CONFIG_ARM64_MODULE_PLTS) && 40 if (!p && IS_ENABLED(CONFIG_ARM64_MODULE_PLTS) &&
@@ -50,7 +50,7 @@ void *module_alloc(unsigned long size)
50 */ 50 */
51 p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base, 51 p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
52 module_alloc_base + SZ_2G, GFP_KERNEL, 52 module_alloc_base + SZ_2G, GFP_KERNEL,
53 PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE, 53 PAGE_KERNEL, 0, NUMA_NO_NODE,
54 __builtin_return_address(0)); 54 __builtin_return_address(0));
55 55
56 if (p && (kasan_module_alloc(p, size) < 0)) { 56 if (p && (kasan_module_alloc(p, size) < 0)) {