diff options
Diffstat (limited to 'arch/ppc')
-rw-r--r-- | arch/ppc/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/mm/fault.c b/arch/ppc/mm/fault.c index 5cdfb71fcb07..bc776beb3136 100644 --- a/arch/ppc/mm/fault.c +++ b/arch/ppc/mm/fault.c | |||
@@ -239,7 +239,7 @@ good_area: | |||
239 | /* protection fault */ | 239 | /* protection fault */ |
240 | if (error_code & 0x08000000) | 240 | if (error_code & 0x08000000) |
241 | goto bad_area; | 241 | goto bad_area; |
242 | if (!(vma->vm_flags & (VM_READ | VM_EXEC))) | 242 | if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))) |
243 | goto bad_area; | 243 | goto bad_area; |
244 | } | 244 | } |
245 | 245 | ||