From: Ralf Baechle Date: Sat, 16 Sep 2006 00:29:37 +0000 (+0100) Subject: [MIPS] Make PROT_WRITE imply PROT_READ. X-Git-Tag: v2.6.19-rc1~1035 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=00932ba3052a84ed73fab34ff1ec5a413b77fbab;p=linux-2.6-omap-h63xx.git [MIPS] Make PROT_WRITE imply PROT_READ. --- diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e3a61722486..a4f8c45c4e8 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; }