diff options
Diffstat (limited to 'arch/x86_64/mm/fault.c')
-rw-r--r-- | arch/x86_64/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/fault.c b/arch/x86_64/mm/fault.c index 1a17b0733ab5..9ba54cc2b5f6 100644 --- a/arch/x86_64/mm/fault.c +++ b/arch/x86_64/mm/fault.c | |||
@@ -464,7 +464,7 @@ good_area: | |||
464 | case PF_PROT: /* read, present */ | 464 | case PF_PROT: /* read, present */ |
465 | goto bad_area; | 465 | goto bad_area; |
466 | case 0: /* read, not present */ | 466 | case 0: /* read, not present */ |
467 | if (!(vma->vm_flags & (VM_READ | VM_EXEC))) | 467 | if (!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE))) |
468 | goto bad_area; | 468 | goto bad_area; |
469 | } | 469 | } |
470 | 470 | ||