]> Git Repo - linux.git/blobdiff - mm/memory-failure.c
mm: soft-offline: check return value in second __get_any_page() call
[linux.git] / mm / memory-failure.c
index a2c987df80ebb8357556da359e50c9746b4e7721..05e079bf9425b238aa0ef64dee6f2115ba6fcfa4 100644 (file)
@@ -1575,7 +1575,7 @@ static int get_any_page(struct page *page, unsigned long pfn, int flags)
                 * Did it turn free?
                 */
                ret = __get_any_page(page, pfn, 0);
-               if (!PageLRU(page)) {
+               if (ret == 1 && !PageLRU(page)) {
                        /* Drop page reference which is from __get_any_page() */
                        put_hwpoison_page(page);
                        pr_info("soft_offline: %#lx: unknown non LRU page type %lx\n",
This page took 0.033334 seconds and 4 git commands to generate.