aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hwpoison-inject.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/hwpoison-inject.c')
-rw-r--r--mm/hwpoison-inject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
index 4ca5fe0042e1..bf73ac17dad4 100644
--- a/mm/hwpoison-inject.c
+++ b/mm/hwpoison-inject.c
@@ -28,7 +28,7 @@ static int hwpoison_inject(void *data, u64 val)
28 /* 28 /*
29 * This implies unable to support free buddy pages. 29 * This implies unable to support free buddy pages.
30 */ 30 */
31 if (!get_page_unless_zero(hpage)) 31 if (!get_hwpoison_page(p))
32 return 0; 32 return 0;
33 33
34 if (!hwpoison_filter_enable) 34 if (!hwpoison_filter_enable)
@@ -58,7 +58,7 @@ inject:
58 pr_info("Injecting memory failure at pfn %#lx\n", pfn); 58 pr_info("Injecting memory failure at pfn %#lx\n", pfn);
59 return memory_failure(pfn, 18, MF_COUNT_INCREASED); 59 return memory_failure(pfn, 18, MF_COUNT_INCREASED);
60put_out: 60put_out:
61 put_page(hpage); 61 put_page(p);
62 return 0; 62 return 0;
63} 63}
64 64