Wanpeng Li 8302423b8e 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.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-09-11 15:58:12 -07:00
..
2013-07-03 16:07:39 -07:00
2012-01-03 22:54:56 -05:00
2013-09-04 09:23:46 -04:00
2011-07-26 16:49:47 -07:00
2013-07-10 18:11:34 -07:00
2013-06-28 14:34:33 +02:00
2013-02-23 17:50:18 -08:00
2013-07-10 18:11:34 -07:00
2012-06-20 14:39:36 -07:00
2013-09-11 15:57:31 -07:00