From 00932ba3052a84ed73fab34ff1ec5a413b77fbab Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 16 Sep 2006 01:29:37 +0100 Subject: [PATCH] [MIPS] Make PROT_WRITE imply PROT_READ. --- arch/mips/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e3a6172248..a4f8c45c4e 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; } -- 2.39.5