Skip to content

Commit

Permalink
edac: sb_edac: Fix a wrong value setting for the previous value
Browse files Browse the repository at this point in the history
>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>
  • Loading branch information
Hui Wang authored and Mauro Carvalho Chehab committed Mar 21, 2012
1 parent ad9c40b commit 7fae0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/sb_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 7fae0db

Please sign in to comment.