Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9e0a4f2 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

cnic: Re-init dev->stats_addr after chip reset



because bnx2x frees the old and allocates new memory during chip reset.

Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eb101924
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {