bnx2x: Prevent memory leak when cnic is absent
authorYuval Mintz <yuvalmin@broadcom.com>
Wed, 1 May 2013 04:27:58 +0000 (04:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2013 19:07:43 +0000 (15:07 -0400)
commit05952246cdbf62da797323e7ce156be2e24b4d8c
treee18c333202d64be1f0a551ac26f834bed0f923d0
parentb0261926ef666142ff9f7de92622172bf1164a26
bnx2x: Prevent memory leak when cnic is absent

bnx2x driver allocates searcher T2 tables, but it releases that memory
during unload only released if the cnic is loaded.

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_main.c