aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/mm/fault.c')
-rw-r--r--arch/i386/mm/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/mm/fault.c b/arch/i386/mm/fault.c
index 5e17a3f43b4..50d8617391d 100644
--- a/arch/i386/mm/fault.c
+++ b/arch/i386/mm/fault.c
@@ -440,7 +440,7 @@ good_area:
440 case 1: /* read, present */ 440 case 1: /* read, present */
441 goto bad_area; 441 goto bad_area;
442 case 0: /* read, not present */ 442 case 0: /* read, not present */
443 if (!(vma->vm_flags & (VM_READ | VM_EXEC))) 443 if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))
444 goto bad_area; 444 goto bad_area;
445 } 445 }
446 446