From: Michael Chan Date: Wed, 4 Jan 2012 12:12:27 +0000 (+0000) Subject: cnic: Re-init dev->stats_addr after chip reset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9e0a4f2ca5e97ae2cff0bda72b9645e047c1a3d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) 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)) {