Skip to content

Commit

Permalink
cnic: Re-init dev->stats_addr after chip reset
Browse files Browse the repository at this point in the history
because bnx2x frees the old and allocates new memory during chip reset.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jan 5, 2012
1 parent eb10192 commit a9e0a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/broadcom/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4869,6 +4869,7 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev)
int func = CNIC_FUNC(cp), ret;
u32 pfid;

dev->stats_addr = ethdev->addr_drv_info_to_mcp;
cp->port_mode = CHIP_PORT_MODE_NONE;

if (BNX2X_CHIP_IS_E2_PLUS(cp->chip_id)) {
Expand Down

0 comments on commit a9e0a4f

Please sign in to comment.