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: Hui Wang <jason77.wang@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ad9c40b7dd
commit
7fae0db439
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue