From: Qiuxu Zhuo Date: Sat, 25 Mar 2017 11:29:01 +0000 (+0800) Subject: EDAC, pnd2_edac: Fix reported DIMM number X-Git-Tag: v5.15~11279^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=819f60fb7db169d851186d04e571e9bca27321e8;p=platform%2Fkernel%2Flinux-starfive.git EDAC, pnd2_edac: Fix reported DIMM number DIMM number passed to edac_mc_handle_error() was accidentally hardcoded to zero. Pass in the correct daddr->dimm value. Signed-off-by: Qiuxu Zhuo Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/pnd2_edac.c b/drivers/edac/pnd2_edac.c index ec2e349d728d..928e0dba41fc 100644 --- a/drivers/edac/pnd2_edac.c +++ b/drivers/edac/pnd2_edac.c @@ -1164,7 +1164,7 @@ static void pnd2_mce_output_error(struct mem_ctl_info *mci, const struct mce *m, /* Call the helper to output message */ edac_mc_handle_error(tp_event, mci, core_err_cnt, m->addr >> PAGE_SHIFT, - m->addr & ~PAGE_MASK, 0, daddr->chan, 0, -1, optype, msg); + m->addr & ~PAGE_MASK, 0, daddr->chan, daddr->dimm, -1, optype, msg); return;