Skip to content

Commit d9b7748

Browse files
Hans Potschsuryasaimadhu
authored andcommitted
EDAC/armada-xp: Fix output of uncorrectable error counter
The number of correctable errors is displayed as uncorrectable errors because the "SBE" error count is passed to both calls of edac_mc_handle_error(). Pass the correct uncorrectable error count to the second edac_mc_handle_error() call when logging uncorrectable errors. [ bp: Massage commit message. ] Fixes: 7f6998a ("ARM: 8888/1: EDAC: Add driver for the Marvell Armada XP SDRAM and L2 cache ECC") Signed-off-by: Hans Potsch <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 64570fb commit d9b7748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/armada_xp_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static void axp_mc_check(struct mem_ctl_info *mci)
178178
"details unavailable (multiple errors)");
179179
if (cnt_dbe)
180180
edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci,
181-
cnt_sbe, /* error count */
181+
cnt_dbe, /* error count */
182182
0, 0, 0, /* pfn, offset, syndrome */
183183
-1, -1, -1, /* top, mid, low layer */
184184
mci->ctl_name,

0 commit comments

Comments
 (0)