aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c
index 78a0d59903ee..77953f41d754 100644
--- a/arch/powerpc/mm/fault.c
+++ b/arch/powerpc/mm/fault.c
@@ -333,7 +333,7 @@ good_area:
333 /* protection fault */ 333 /* protection fault */
334 if (error_code & 0x08000000) 334 if (error_code & 0x08000000)
335 goto bad_area; 335 goto bad_area;
336 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) 336 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
337 goto bad_area; 337 goto bad_area;
338 } 338 }
339 339