Skip to content

Commit c4fc195

Browse files
aeglsuryasaimadhu
authored andcommitted
EDAC: i7core, sb_edac: Don't return NOTIFY_BAD from mce_decoder callback
Both of these drivers can return NOTIFY_BAD, but this terminates processing other callbacks that were registered later on the chain. Since the driver did nothing to log the error it seems wrong to prevent other interested parties from seeing it. E.g. neither of them had even bothered to check the type of the error to see if it was a memory error before the return NOTIFY_BAD. Signed-off-by: Tony Luck <tony.luck@intel.com> Acked-by: Aristeu Rozanski <aris@redhat.com> Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Cc: linux-edac <linux-edac@vger.kernel.org> Cc: <stable@vger.kernel.org> Link: http://lkml.kernel.org/r/72937355dd92318d2630979666063f8a2853495b.1461864507.git.tony.luck@intel.com Signed-off-by: Borislav Petkov <bp@suse.de>
1 parent 02da2d7 commit c4fc195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/edac/i7core_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val,
18661866

18671867
i7_dev = get_i7core_dev(mce->socketid);
18681868
if (!i7_dev)
1869-
return NOTIFY_BAD;
1869+
return NOTIFY_DONE;
18701870

18711871
mci = i7_dev->mci;
18721872
pvt = mci->pvt_info;

drivers/edac/sb_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3168,7 +3168,7 @@ static int sbridge_mce_check_error(struct notifier_block *nb, unsigned long val,
31683168

31693169
mci = get_mci_for_node_id(mce->socketid);
31703170
if (!mci)
3171-
return NOTIFY_BAD;
3171+
return NOTIFY_DONE;
31723172
pvt = mci->pvt_info;
31733173

31743174
/*

0 commit comments

Comments
 (0)