If one MCE error has been processed in kernel, it's not necessory
to pass it to user level mcelog.

Signed-off-by: Zhenzhong Duan <[email protected]>
---
 drivers/edac/skx_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c
index 46be1a7..8c0165b 100644
--- a/drivers/edac/skx_common.c
+++ b/drivers/edac/skx_common.c
@@ -615,7 +615,8 @@ int skx_mce_check_error(struct notifier_block *nb, unsigned 
long val,
 
        skx_mce_output_error(mci, mce, &res);
 
-       return NOTIFY_DONE;
+       /* Advice mcelog that the error were handled */
+       return NOTIFY_STOP;
 }
 
 void skx_remove(void)
-- 
1.8.3.1

Reply via email to