|
@@ -555,8 +555,9 @@ static int madvise_hwpoison(int bhv, unsigned long start, unsigned long end)
|
|
}
|
|
}
|
|
pr_info("Injecting memory failure for page %#lx at %#lx\n",
|
|
pr_info("Injecting memory failure for page %#lx at %#lx\n",
|
|
page_to_pfn(p), start);
|
|
page_to_pfn(p), start);
|
|
- /* Ignore return value for now */
|
|
|
|
- memory_failure(page_to_pfn(p), 0, MF_COUNT_INCREASED);
|
|
|
|
|
|
+ ret = memory_failure(page_to_pfn(p), 0, MF_COUNT_INCREASED);
|
|
|
|
+ if (ret)
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|