diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 0b3f6c71620d..4b5a282e1107 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2627,7 +2627,7 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2627 | return VM_FAULT_SIGBUS; | 2627 | return VM_FAULT_SIGBUS; |
2628 | 2628 | ||
2629 | /* Use the zero-page for reads */ | 2629 | /* Use the zero-page for reads */ |
2630 | if (!(flags & FAULT_FLAG_WRITE)) { | 2630 | if (!(flags & FAULT_FLAG_WRITE) && !mm_forbids_zeropage(mm)) { |
2631 | entry = pte_mkspecial(pfn_pte(my_zero_pfn(address), | 2631 | entry = pte_mkspecial(pfn_pte(my_zero_pfn(address), |
2632 | vma->vm_page_prot)); | 2632 | vma->vm_page_prot)); |
2633 | page_table = pte_offset_map_lock(mm, pmd, address, &ptl); | 2633 | page_table = pte_offset_map_lock(mm, pmd, address, &ptl); |