]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/mprotect.c
specialix: restore driver using new break functionality
[linux-2.6-omap-h63xx.git] / mm / mprotect.c
index acfe7c8d72fcff59dec990869a5fce9d63b56e55..360d9cc8b38c061185d562fc40b7f032ae34d21d 100644 (file)
@@ -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;