Skip to content

Commit

Permalink
[MIPS] Make PROT_WRITE imply PROT_READ.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Baechle committed Sep 27, 2006
1 parent fc095a9 commit 00932ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 00932ba

Please sign in to comment.