edac: sb_edac: Fix a wrong value setting for the previous value
authorHui Wang <jason77.wang@gmail.com>
Mon, 6 Feb 2012 07:11:01 +0000 (04:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Mar 2012 18:20:11 +0000 (15:20 -0300)
>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>
drivers/edac/sb_edac.c

index 843545beba6415a1a954d2390aa64dcdac83aa2a..291788798b6f17385cae1e344df882c5fe61c31e 100644 (file)
@@ -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;
        }
 
        /*
This page took 0.027978 seconds and 5 git commands to generate.