linux_dsm_epyc7002/drivers/net/ethernet
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
..
3com 3c59x: shorten timer period for slave devices 2012-02-14 16:28:23 -05:00
8390
adaptec
adi
aeroflex
alteon
amd
apple
atheros atl1c: set ATL1C_WORK_EVENT_RESET bit correctly 2012-03-08 00:27:45 -08:00
broadcom bnx2x: fix memory leak in bnx2x_init_firmware() 2012-03-16 01:57:26 -07:00
brocade bna: fix error handling of bnad_get_flash_partition_by_offset() 2012-02-09 15:43:30 -05:00
cadence
calxeda
chelsio cxgb4vf: Add support for Chelsio's T480-CR and T440-LP-CR adapters 2012-03-06 16:21:17 -05:00
cirrus
cisco enic: fix an endian bug in enic_probe() 2012-03-01 17:23:42 -05:00
davicom
dec
dlink
emulex ethtool: Null-terminate filename passed to ethtool_ops::flash_device 2012-02-01 14:47:17 -05:00
faraday net: ftgmac100/ftmac100: add missing interrupt.h include 2012-01-18 21:01:11 -05:00
freescale fec: fix PHY name to match fixed MDIO bus name 2012-02-13 16:04:09 -05:00
fujitsu
hp
i825xx
ibm ehea: restore multicast and rx_errors fields 2012-03-08 00:23:04 -08:00
icplus
intel ixgbe: ethtool: stats user buffer overrun 2012-02-09 01:27:47 -08:00
marvell Revert "skge: check for PCI dma mapping errors" 2012-02-07 12:51:10 -05:00
mellanox mlx4_core: fix bug in modify_cq wrapper for resize flow. 2012-03-08 00:28:01 -08:00
micrel net/ethernet: ks8851_mll: signedness bug in ks8851_probe() 2012-02-19 18:57:51 -05:00
microchip
myricom
natsemi
neterion
nuvoton
nvidia
octeon octeon: fix PHY name to match MDIO bus name 2012-02-13 16:04:09 -05:00
oki-semi pch_gbe: memory corruption calling pch_gbe_validate_option() 2012-03-01 17:23:42 -05:00
packetengines packetengines: fix config default 2012-03-02 19:05:47 -05:00
pasemi
qlogic qla3xxx: ethernet: Fix bogus interrupt state flag. 2012-03-05 16:50:52 -05:00
racal
rdc
realtek r8169: runtime resume before shutdown. 2012-03-06 14:43:49 -05:00
renesas net: sh_eth: fix skb_over_panic happen 2012-02-07 13:37:30 -05:00
seeq
sfc sfc: Fix assignment of ip_summed for pre-allocated skbs 2012-02-25 00:10:22 +00:00
sgi
silan
sis
smsc smsc911x: use an unique MDIO bus name. 2012-01-10 16:35:01 -08:00
stmicro stmmac: update the driver version to Feb 2012 (v2) 2012-02-15 14:52:10 -05:00
sun
tehuti
ti davinci_emac: Do not free all rx dma descriptors during init 2012-02-24 03:25:10 -05:00
tile
toshiba net: enable TC35815 for MIPS again 2012-02-07 13:40:44 -05:00
tundra drivers/net/ethernet/tundra/tsi108_eth.c: add missing iounmap 2012-01-12 20:05:28 -08:00
via via-velocity: S3 resume fix. 2012-02-05 17:47:09 -05:00
xilinx
xircom
xscale ixp4xx-eth: fix PHY name to match MDIO bus name 2012-02-13 16:04:09 -05:00
dnet.c
dnet.h
ethoc.c
fealnx.c
jme.c jme: Fix FIFO flush issue 2012-02-22 14:44:41 -05:00
jme.h jme: Fix FIFO flush issue 2012-02-22 14:44:41 -05:00
Kconfig
korina.c
lantiq_etop.c lantiq_etop: use an unique MDIO bus name. 2012-01-10 16:35:00 -08:00
Makefile
mipsnet.c
netx-eth.c
s6gmac.c s6gmac: use an unique MDIO bus name. 2012-01-10 16:35:01 -08:00