diff options
Diffstat (limited to 'mm/mprotect.c')
-rw-r--r-- | mm/mprotect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c index acfe7c8d72fc..360d9cc8b38c 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c | |||
@@ -237,7 +237,7 @@ sys_mprotect(unsigned long start, size_t len, unsigned long prot) | |||
237 | end = start + len; | 237 | end = start + len; |
238 | if (end <= start) | 238 | if (end <= start) |
239 | return -ENOMEM; | 239 | return -ENOMEM; |
240 | if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM)) | 240 | if (!arch_validate_prot(prot)) |
241 | return -EINVAL; | 241 | return -EINVAL; |
242 | 242 | ||
243 | reqprot = prot; | 243 | reqprot = prot; |