diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-03-02 02:59:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-03 01:32:38 -0500 |
commit | 161197853de91eb1eebdde05f13223c377cf3be0 (patch) | |
tree | bbc7af65be81f090b4ff66b1eaad37be1eda96a2 /drivers/net/bnx2x_main.c | |
parent | 6044735d8ddd96bf23cf975bae8729c65479aa14 (diff) |
bnx2x: Add rmb to read status block indices on load
Add rmb to read status block indices on load
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index fbd0f88fc81b..e4d54e14fd53 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -5154,6 +5154,10 @@ static void bnx2x_nic_init(struct bnx2x *bp, u32 load_code) | |||
5154 | bnx2x_update_fpsb_idx(fp); | 5154 | bnx2x_update_fpsb_idx(fp); |
5155 | } | 5155 | } |
5156 | 5156 | ||
5157 | /* ensure status block indices were read */ | ||
5158 | rmb(); | ||
5159 | |||
5160 | |||
5157 | bnx2x_init_def_sb(bp, bp->def_status_blk, bp->def_status_blk_mapping, | 5161 | bnx2x_init_def_sb(bp, bp->def_status_blk, bp->def_status_blk_mapping, |
5158 | DEF_SB_ID); | 5162 | DEF_SB_ID); |
5159 | bnx2x_update_dsb_idx(bp); | 5163 | bnx2x_update_dsb_idx(bp); |