From: Kirill A. Shutemov Date: Tue, 25 Feb 2014 23:01:39 +0000 (-0800) Subject: mm, hwpoison: release page on PageHWPoison() in __do_fault() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=33b6c7765f0c20da9d61246a095acad0f98a1da5;p=openwrt%2Fstaging%2Fblogic.git mm, hwpoison: release page on PageHWPoison() in __do_fault() It seems we forget to release page after detecting HW error. Signed-off-by: Kirill A. Shutemov Cc: Mel Gorman Cc: Rik van Riel Cc: Andi Kleen Cc: Matthew Wilcox Cc: Dave Hansen Cc: Naoya Horiguchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index be6a0c0d4ae0..5f2001a7ab31 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3348,6 +3348,7 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma, if (ret & VM_FAULT_LOCKED) unlock_page(vmf.page); ret = VM_FAULT_HWPOISON; + page_cache_release(vmf.page); goto uncharge_out; }