aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/fault.c')
-rw-r--r--arch/sh/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c
index c69fd603226a..507f28914706 100644
--- a/arch/sh/mm/fault.c
+++ b/arch/sh/mm/fault.c
@@ -69,7 +69,7 @@ good_area:
69 if (!(vma->vm_flags & VM_WRITE)) 69 if (!(vma->vm_flags & VM_WRITE))
70 goto bad_area; 70 goto bad_area;
71 } else { 71 } else {
72 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) 72 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
73 goto bad_area; 73 goto bad_area;
74 } 74 }
75 75