linux/drivers/net/ethernet/broadcom
Michal Schmidt c0ea452e42 bnx2x: fix memory leak in bnx2x_init_firmware()
When cycling the interface down and up, bnx2x_init_firmware() knows that
the firmware is already loaded, but nevertheless it allocates certain
arrays anew (init_data, init_ops, init_ops_offsets, iro_arr). The old
arrays are leaked.

Fix the leaks by returning early if the firmware was already loaded.
Because if the firmware is loaded, so are the arrays.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-03-16 01:57:26 -07:00
..
bnx2x bnx2x: fix memory leak in bnx2x_init_firmware() 2012-03-16 01:57:26 -07:00
Kconfig
Makefile
b44.c b44: remove __exit from b44_pci_exit() 2012-02-19 18:57:51 -05:00
b44.h
bcm63xx_enet.c bcm63xx-enet: fix PHY name to match MDIO bus name 2012-02-13 16:04:08 -05:00
bcm63xx_enet.h
bnx2.c bnx2: Update driver to use new mips firmware. 2011-12-19 15:46:28 -05:00
bnx2.h bnx2: switch to build_skb() infrastructure 2011-11-18 02:04:47 -05:00
bnx2_fw.h
cnic.c ethernet/broadcom: ip6_route_output() never returns NULL. 2012-02-22 15:30:14 -05:00
cnic.h
cnic_defs.h cnic: Improve error recovery on bnx2x devices 2012-01-05 14:01:21 -05:00
cnic_if.h cnic: Improve error recovery on bnx2x devices 2012-01-05 14:01:21 -05:00
sb1250-mac.c sb1250: use an unique MDIO bus name. 2012-01-10 16:35:00 -08:00
tg3.c tg3: Fix to use multi queue BQL interfaces 2012-03-06 01:19:08 -05:00
tg3.h tg3: Break out RSS indir table init and assignment 2011-12-15 13:09:11 -05:00