mm/vma: make vma_is_accessible() available for general use
[platform/kernel/linux-rpi.git] / arch / m68k / mm / fault.c
index e9b1d75..d5131ec 100644 (file)
@@ -125,7 +125,7 @@ good_area:
                case 1:         /* read, present */
                        goto acc_err;
                case 0:         /* read, not present */
-                       if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
+                       if (!vma_is_accessible(vma))
                                goto acc_err;
        }