Skip to content

Commit e9ff663

Browse files
Zhenzhong Duanaegl
authored andcommitted
EDAC/mc: Call edac_inc_ue_error() before panic
By calling edac_inc_ue_error() before panic, we get a correct UE error count for core dump analysis. Signed-off-by: Zhenzhong Duan <[email protected]> Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 30bf38e commit e9ff663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/edac/edac_mc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,8 @@ static void edac_ue_error(struct edac_raw_error_desc *e)
950950
e->other_detail);
951951
}
952952

953+
edac_inc_ue_error(e);
954+
953955
if (edac_mc_get_panic_on_ue()) {
954956
panic("UE %s%son %s (%s page:0x%lx offset:0x%lx grain:%ld%s%s)\n",
955957
e->msg,
@@ -959,8 +961,6 @@ static void edac_ue_error(struct edac_raw_error_desc *e)
959961
*e->other_detail ? " - " : "",
960962
e->other_detail);
961963
}
962-
963-
edac_inc_ue_error(e);
964964
}
965965

966966
static void edac_inc_csrow(struct edac_raw_error_desc *e, int row, int chan)

0 commit comments

Comments
 (0)