projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge commit '85082fd7cbe3173198aac0eb5e85ab1edcc6352c' into test-build
[linux-2.6-block.git]
/
mm
/
mprotect.c
diff --git
a/mm/mprotect.c
b/mm/mprotect.c
index acfe7c8d72fcff59dec990869a5fce9d63b56e55..360d9cc8b38c061185d562fc40b7f032ae34d21d 100644
(file)
--- a/
mm/mprotect.c
+++ b/
mm/mprotect.c
@@
-237,7
+237,7
@@
sys_mprotect(unsigned long start, size_t len, unsigned long prot)
end = start + len;
if (end <= start)
return -ENOMEM;
- if (
prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM
))
+ if (
!arch_validate_prot(prot
))
return -EINVAL;
reqprot = prot;