summaryrefslogtreecommitdiff
path: root/arch/arm/mm/pageattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/pageattr.c')
-rw-r--r--arch/arm/mm/pageattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index 6cb0d8ea9138..3b69f2642513 100644
--- a/arch/arm/mm/pageattr.c
+++ b/arch/arm/mm/pageattr.c
@@ -55,7 +55,8 @@ static int change_memory_common(unsigned long addr, int numpages,
if (!size)
return 0;
- if (!in_range(start, size, MODULES_VADDR, MODULES_END))
+ if (!in_range(start, size, MODULES_VADDR, MODULES_END) &&
+ !in_range(start, size, VMALLOC_START, VMALLOC_END))
return -EINVAL;
data.set_mask = set_mask;