diff options
author | Hui Wang <jason77.wang@gmail.com> | 2012-02-06 02:11:01 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-21 14:20:11 -0400 |
commit | 7fae0db43906ef182b3aee22415c9042ab18d6e6 (patch) | |
tree | 1d0156d8f90cc00a95969bc40c178366d87c5757 /drivers | |
parent | ad9c40b7dd749d6429c8b21178c125004c6dc75d (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/sb_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 843545beba64..291788798b6f 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c | |||
@@ -763,7 +763,7 @@ static void get_memory_layout(const struct mem_ctl_info *mci) | |||
763 | (u32)TAD_TGT2(reg), | 763 | (u32)TAD_TGT2(reg), |
764 | (u32)TAD_TGT3(reg), | 764 | (u32)TAD_TGT3(reg), |
765 | reg); | 765 | reg); |
766 | prv = tmp_mb; | 766 | prv = limit; |
767 | } | 767 | } |
768 | 768 | ||
769 | /* | 769 | /* |