From: Naoya Horiguchi Date: Wed, 30 Jul 2014 23:08:30 +0000 (-0700) Subject: hwpoison: call action_result() in failure path of hwpoison_user_mappings() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~210^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52089b14c08f6ee9886c40b031712383fa24ddd9;p=pandora-kernel.git hwpoison: call action_result() in failure path of hwpoison_user_mappings() hwpoison_user_mappings() could fail for various reasons, so printk()s to print out the reasons should be done in each failure check inside hwpoison_user_mappings(). And currently we don't call action_result() when hwpoison_user_mappings() fails, which is not consistent with other exit points of memory error handler. So this patch fixes these messaging problems. Signed-off-by: Naoya Horiguchi Cc: Andi Kleen Cc: Chen Yucong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed