diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/memory.c b/mm/memory.c index bc6296398f8b..a25ee1d3e20a 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1728,10 +1728,8 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1728 | */ | 1728 | */ |
1729 | spin_lock(&mm->page_table_lock); | 1729 | spin_lock(&mm->page_table_lock); |
1730 | page_table = pte_offset_map(pmd, address); | 1730 | page_table = pte_offset_map(pmd, address); |
1731 | if (unlikely(!pte_same(*page_table, orig_pte))) { | 1731 | if (unlikely(!pte_same(*page_table, orig_pte))) |
1732 | ret = VM_FAULT_MINOR; | ||
1733 | goto out_nomap; | 1732 | goto out_nomap; |
1734 | } | ||
1735 | 1733 | ||
1736 | if (unlikely(!PageUptodate(page))) { | 1734 | if (unlikely(!PageUptodate(page))) { |
1737 | ret = VM_FAULT_SIGBUS; | 1735 | ret = VM_FAULT_SIGBUS; |