bnx2x: Fix VF memory leak unload
authorAriel Elior <ariele@broadcom.com>
Tue, 27 Aug 2013 22:13:03 +0000 (01:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Aug 2013 02:03:04 +0000 (22:03 -0400)
commitb4cddbd6dd9b3b9e08c26d8b7247e4e011092117
tree778f0b97b2ca1dcfe696b65caca867486b5a0b42
parent35a04aa35c2929f24c7f063f42b6d776ad848c24
bnx2x: Fix VF memory leak unload

Due to incorrect VF/PF conditions, when unloading a VF it will not release
part of the memory it has previously allocated.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c