From: Hui Wang Date: Mon, 6 Feb 2012 07:11:01 +0000 (-0300) Subject: edac: sb_edac: Fix a wrong value setting for the previous value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7fae0db43906ef182b3aee22415c9042ab18d6e6;p=linux.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 843545beba641..291788798b6f1 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; } /*