From: Ralf Baechle Date: Sat, 16 Sep 2006 00:29:37 +0000 (+0100) Subject: [MIPS] Make PROT_WRITE imply PROT_READ. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00932ba3052a84ed73fab34ff1ec5a413b77fbab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [MIPS] Make PROT_WRITE imply PROT_READ. --- diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e3a617224868..a4f8c45c4e8e 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -89,7 +89,7 @@ good_area: if (!(vma->vm_flags & VM_WRITE)) goto bad_area; } else { - if (!(vma->vm_flags & (VM_READ | VM_EXEC))) + if (!(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC))) goto bad_area; }