提交 7fae0db4 编写于 作者: H Hui Wang 提交者: Mauro Carvalho Chehab

edac: sb_edac: Fix a wrong value setting for the previous value

>From the driver design, the variable limit wants to compare with its
previous value, we should set the value of limit instead of the value
of tmp_mb to the variable prev.
Signed-off-by: NHui Wang <jason77.wang@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ad9c40b7
...@@ -763,7 +763,7 @@ static void get_memory_layout(const struct mem_ctl_info *mci) ...@@ -763,7 +763,7 @@ static void get_memory_layout(const struct mem_ctl_info *mci)
(u32)TAD_TGT2(reg), (u32)TAD_TGT2(reg),
(u32)TAD_TGT3(reg), (u32)TAD_TGT3(reg),
reg); reg);
prv = tmp_mb; prv = limit;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册