aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r--mm/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c
index a5bf31c27375..ecfaa5844b5f 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -239,7 +239,7 @@ sys_mprotect(unsigned long start, size_t len, unsigned long prot)
239 end = start + len; 239 end = start + len;
240 if (end <= start) 240 if (end <= start)
241 return -ENOMEM; 241 return -ENOMEM;
242 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) 242 if (!arch_validate_prot(prot))
243 return -EINVAL; 243 return -EINVAL;
244 244
245 reqprot = prot; 245 reqprot = prot;