]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/syscalls.c
fat: use fat_detach() in fat_clear_inode()
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / syscalls.c
index 4fe69ca244818e78fb86c37c2091a023b4e77b0b..c04832c4a02e3965834a48adbaad9450e76ef378 100644 (file)
@@ -143,6 +143,9 @@ static inline unsigned long do_mmap2(unsigned long addr, size_t len,
        struct file * file = NULL;
        unsigned long ret = -EINVAL;
 
+       if (!arch_validate_prot(prot))
+               goto out;
+
        if (shift) {
                if (off & ((1 << shift) - 1))
                        goto out;