Skip to content

Commit

Permalink
EDAC, pnd2_edac: Fix reported DIMM number
Browse files Browse the repository at this point in the history
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 <qiuxu.zhuo@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Qiuxu Zhuo authored and Borislav Petkov committed Mar 26, 2017
1 parent cd1be31 commit 819f60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/pnd2_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 819f60f

Please sign in to comment.