diff options
author | Michael Chan <mchan@broadcom.com> | 2012-01-04 07:12:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-05 14:01:21 -0500 |
commit | a9e0a4f2ca5e97ae2cff0bda72b9645e047c1a3d (patch) | |
tree | 0bc661955edb7719d868db9a307d6912fd741100 /drivers | |
parent | eb10192447370f19a215a8c2749332afa1199d46 (diff) |
cnic: Re-init dev->stats_addr after chip reset
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/broadcom/cnic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/cnic.c b/drivers/net/ethernet/broadcom/cnic.c index 4bcb67eedf1e..567cb04fc8fd 100644 --- a/drivers/net/ethernet/broadcom/cnic.c +++ b/drivers/net/ethernet/broadcom/cnic.c | |||
@@ -4869,6 +4869,7 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev) | |||
4869 | int func = CNIC_FUNC(cp), ret; | 4869 | int func = CNIC_FUNC(cp), ret; |
4870 | u32 pfid; | 4870 | u32 pfid; |
4871 | 4871 | ||
4872 | dev->stats_addr = ethdev->addr_drv_info_to_mcp; | ||
4872 | cp->port_mode = CHIP_PORT_MODE_NONE; | 4873 | cp->port_mode = CHIP_PORT_MODE_NONE; |
4873 | 4874 | ||
4874 | if (BNX2X_CHIP_IS_E2_PLUS(cp->chip_id)) { | 4875 | if (BNX2X_CHIP_IS_E2_PLUS(cp->chip_id)) { |