Commit 32ac769b authored by Tony Luck's avatar Tony Luck Committed by Sasha Levin

sb_edac: Fix typo computing number of banks

[ Upstream commit fec53af5 ]

Code will always think there are 16 banks because of a typo

Reported-by: Misha
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Acked-by: default avatarAristeu Rozanski <aris@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent e3d11d50
......@@ -849,7 +849,7 @@ static int get_dimm_config(struct mem_ctl_info *mci)
else
edac_dbg(0, "Memory is unregistered\n");
if (mtype == MEM_DDR4 || MEM_RDDR4)
if (mtype == MEM_DDR4 || mtype == MEM_RDDR4)
banks = 16;
else
banks = 8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment