summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorHui Wang <jason77.wang@gmail.com>2012-02-06 08:11:01 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-21 19:20:11 +0100
commit7fae0db43906ef182b3aee22415c9042ab18d6e6 (patch)
tree1d0156d8f90cc00a95969bc40c178366d87c5757 /drivers/edac
parentedac: sb_edac: Fix a INTERLEAVE_MODE() misuse (diff)
downloadlinux-7fae0db43906ef182b3aee22415c9042ab18d6e6.tar.xz
linux-7fae0db43906ef182b3aee22415c9042ab18d6e6.zip
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;
}
/*