aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index ce3c9e4492d8..7f8c03ec587c 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -1711,7 +1711,7 @@ unlock:
1711 } 1711 }
1712 return ret; 1712 return ret;
1713oom_free_new: 1713oom_free_new:
1714 __free_page(new_page); 1714 page_cache_release(new_page);
1715oom: 1715oom:
1716 if (old_page) 1716 if (old_page)
1717 page_cache_release(old_page); 1717 page_cache_release(old_page);
@@ -2163,7 +2163,7 @@ release:
2163 page_cache_release(page); 2163 page_cache_release(page);
2164 goto unlock; 2164 goto unlock;
2165oom_free_page: 2165oom_free_page:
2166 __free_page(page); 2166 page_cache_release(page);
2167oom: 2167oom:
2168 return VM_FAULT_OOM; 2168 return VM_FAULT_OOM;
2169} 2169}