]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
cnic: Re-init dev->stats_addr after chip reset
authorMichael Chan <mchan@broadcom.com>
Wed, 4 Jan 2012 12:12:27 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jan 2012 19:01:21 +0000 (14:01 -0500)
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>
drivers/net/ethernet/broadcom/cnic.c

index 4bcb67eedf1ebba563b85873c5330410939aa46d..567cb04fc8fdf9f81eb31c26e39c49591023d2fb 100644 (file)
@@ -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)) {