mm/hwpoison: fix refcount of THP head page in no-injection case
[deliverable/linux.git] / mm / hwpoison-inject.c
index bf73ac17dad424d9e46857334e5b0befb6805fff..aeba0edd6e447b1e853fdf2eb46547dae363f6f1 100644 (file)
@@ -58,7 +58,7 @@ inject:
        pr_info("Injecting memory failure at pfn %#lx\n", pfn);
        return memory_failure(pfn, 18, MF_COUNT_INCREASED);
 put_out:
-       put_page(p);
+       put_hwpoison_page(p);
        return 0;
 }
 
This page took 0.025815 seconds and 5 git commands to generate.