Skip to contentSkip to conversation

mm-hwpoison-fix-return-value-of-madvise_hwpoison.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-hwpoison-fix-return-value-of-madvise_hwpoison.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:45:41 -0700

The patch titled
Subject: mm/madvise.c: fix return value of madvise_hwpoison()
has been removed from the -mm tree. Its filename was
mm-hwpoison-fix-return-value-of-madvise_hwpoison.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Wanpeng Li <[email protected]>
Subject: mm/madvise.c: fix return value of madvise_hwpoison()

The return value outside for loop is always zero which means madvise_hwpoison return success, however, this is not truth for soft_offline_page w/ failure return value.

---

 mm/madvise.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/madvise.c renamed from mm/madvise.c~mm-hwpoison-fix-return-value-of-madvise_hwpoison +1 -1
diff -puN mm/madvise.c~mm-hwpoison-fix-return-value-of-madvise_hwpoison mm/madvise.c
@@ -361,7 +361,7 @@ static int madvise_hwpoison(int bhv, uns
 				page_to_pfn(p), start);
 			ret = soft_offline_page(p, MF_COUNT_INCREASED);
 			if (ret)
-				break;
+				return ret;
 			continue;
 		}
 		pr_info("Injecting memory failure for page %#lx at %#lx\n",

_

Patches currently in -mm which might be from [email protected] are

origin.patch mm-drop-actor-argument-of-do_generic_file_read.patch mm-drop-actor-argument-of-do_generic_file_read-fix.patch