diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c index e3a617224868f04643719e68c9020d9941688efc..a4f8c45c4e8ede95a018f85da394317a88153ba4 100644 --- a/arch/mips/mm/fault.c +++ b/arch/mips/mm/fault.c @@ -89,7 +89,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, 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; }