diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 9606ceb3c165..9b3b73f4ae9c 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2792,8 +2792,10 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2792 | spinlock_t *ptl; | 2792 | spinlock_t *ptl; |
2793 | pte_t entry; | 2793 | pte_t entry; |
2794 | 2794 | ||
2795 | if (check_stack_guard_page(vma, address) < 0) | 2795 | if (check_stack_guard_page(vma, address) < 0) { |
2796 | pte_unmap(page_table); | ||
2796 | return VM_FAULT_SIGBUS; | 2797 | return VM_FAULT_SIGBUS; |
2798 | } | ||
2797 | 2799 | ||
2798 | if (!(flags & FAULT_FLAG_WRITE)) { | 2800 | if (!(flags & FAULT_FLAG_WRITE)) { |
2799 | entry = pte_mkspecial(pfn_pte(my_zero_pfn(address), | 2801 | entry = pte_mkspecial(pfn_pte(my_zero_pfn(address), |