bnx2: Zero out status block before chip reset.
[deliverable/linux.git] / drivers / net / bnx2.c
index 756d4b4f0a9fda55053b732bc4562545514fd843..e75b6e94f6521dc26c75901923d5dd0d91e7ff5b 100644 (file)
@@ -4858,6 +4858,7 @@ bnx2_init_chip(struct bnx2 *bp)
        bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG2, BNX2_RBUF_CONFIG2_VAL(mtu));
        bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG3, BNX2_RBUF_CONFIG3_VAL(mtu));
 
+       memset(bp->bnx2_napi[0].status_blk.msi, 0, bp->status_stats_size);
        for (i = 0; i < BNX2_MAX_MSIX_VEC; i++)
                bp->bnx2_napi[i].last_status_idx = 0;
 
This page took 0.027451 seconds and 5 git commands to generate.