summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorHui Wang <jason77.wang@gmail.com>2012-02-06 04:11:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-21 15:20:11 -0300
commit7fae0db43906ef182b3aee22415c9042ab18d6e6 (patch)
tree1d0156d8f90cc00a95969bc40c178366d87c5757 /drivers/edac
parentad9c40b7dd749d6429c8b21178c125004c6dc75d (diff)
downloadlinux-7fae0db43906ef182b3aee22415c9042ab18d6e6.tar.bz2
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/edac')
-rw-r--r--drivers/edac/sb_edac.c2
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)
(u32)TAD_TGT2(reg),
(u32)TAD_TGT3(reg),
reg);
- prv = tmp_mb;
+ prv = limit;
}
/*