diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 60ea601e03ea..6ab19dd4a199 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -2542,7 +2542,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2542 | } else if (PageHWPoison(page)) { | 2542 | } else if (PageHWPoison(page)) { |
2543 | ret = VM_FAULT_HWPOISON; | 2543 | ret = VM_FAULT_HWPOISON; |
2544 | delayacct_clear_flag(DELAYACCT_PF_SWAPIN); | 2544 | delayacct_clear_flag(DELAYACCT_PF_SWAPIN); |
2545 | goto out; | 2545 | goto out_release; |
2546 | } | 2546 | } |
2547 | 2547 | ||
2548 | lock_page(page); | 2548 | lock_page(page); |
@@ -2614,6 +2614,7 @@ out_nomap: | |||
2614 | pte_unmap_unlock(page_table, ptl); | 2614 | pte_unmap_unlock(page_table, ptl); |
2615 | out_page: | 2615 | out_page: |
2616 | unlock_page(page); | 2616 | unlock_page(page); |
2617 | out_release: | ||
2617 | page_cache_release(page); | 2618 | page_cache_release(page); |
2618 | return ret; | 2619 | return ret; |
2619 | } | 2620 | } |