linux/drivers/net/ethernet
Navid Emamdoost 9d0995cc26 net: qlogic: Fix memory leak in ql_alloc_large_buffers
[ Upstream commit 1acb8f2a7a ]

In ql_alloc_large_buffers, a new skb is allocated via netdev_alloc_skb.
This skb should be released if pci_dma_mapping_error fails.

Fixes: 0f8ab89e82 ("qla3xxx: Check return code from pci_map_single() in ql_release_to_lrg_buf_free_list(), ql_populate_free_queue(), ql_alloc_large_buffers(), and ql3xxx_send()")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-07 18:57:22 +02:00
..
3com net: prevent ISA drivers from building on PPC32 2018-07-22 11:12:29 -07:00
8390 net: phy: rename Asix Electronics PHY driver 2019-07-14 08:11:08 +02:00
adaptec net: adaptec: Replace mdelay() with msleep() in starfire_init_one() 2018-07-26 21:24:23 -07:00
aeroflex
agere
alacritech
allwinner
alteon alteon: acenic: mark expected switch fall-through 2018-08-07 17:54:19 -07:00
altera net: altera_tse: fix msgdma_tx_completion on non-zero fill_level case 2019-03-13 14:02:29 -07:00
amazon net: ena: gcc 8: fix compilation warning 2019-05-31 06:46:09 -07:00
amd amd-xgbe: Fix error path in xgbe_mod_init() 2019-09-21 07:17:08 +02:00
apm drivers: net: xgene: Remove unnecessary forward declarations 2019-01-13 09:51:00 +01:00
apple net: apple: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
aquantia net: aquantia: fix out of memory condition on rx side 2019-09-21 07:17:10 +02:00
arc
atheros net: set static variable an initial value in atl2_probe() 2019-03-23 20:09:52 +01:00
aurora
broadcom bnx2x: Fix VF's VLAN reconfiguration in reload. 2019-08-25 10:48:03 +02:00
brocade
cadence net: macb: Change interrupt and napi enable order in open 2019-05-16 19:41:29 +02:00
calxeda
cavium net: cavium: fix driver name 2019-09-10 10:33:48 +01:00
chelsio cxgb4:Fix out-of-bounds MSI-X info array access 2019-10-07 18:57:19 +02:00
cirrus net: cirrus: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
cisco enic: fix build warning without CONFIG_CPUMASK_OFFSTACK 2019-04-05 22:32:57 +02:00
cortina net: gemini: Fix copy/paste error 2018-12-05 19:31:58 +01:00
davicom
dec net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE() 2019-06-22 08:15:17 +02:00
dlink
emulex be2net: Signal that the device cannot transmit during reconfiguration 2019-08-06 19:06:51 +02:00
ezchip
faraday net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts 2018-12-13 09:16:14 +01:00
freescale net: fec: Do not use netdev messages too early 2019-07-26 09:14:04 +02:00
fujitsu
hisilicon net: hisilicon: Fix dma_map_single failed on arm64 2019-08-29 08:28:44 +02:00
hp net: hp100: fix always-true check for link up state 2018-09-17 07:55:19 -07:00
huawei hinic: remove ndo_poll_controller 2018-09-28 11:12:28 -07:00
i825xx net: i825xx: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
ibm net/ibmvnic: Fix missing { in __ibmvnic_reset 2019-10-01 08:26:10 +02:00
intel i40e: check __I40E_VF_DISABLE bit in i40e_sync_filters_subtask 2019-10-05 13:10:08 +02:00
marvell skge: fix checksum byte order 2019-10-05 13:09:29 +02:00
mediatek net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled 2019-06-25 11:35:57 +08:00
mellanox net/mlx5: Add device ID of upcoming BlueField-2 2019-10-05 13:09:31 +02:00
micrel net: ks8851: Set initial carrier state to down 2019-05-04 09:20:16 +02:00
microchip lan743x: Fix TX Stall Issue 2019-03-19 13:12:38 +01:00
moxa
mscc ocelot: Cancel delayed work before wq destruction 2019-08-09 17:52:33 +02:00
myricom net: myri10ge: fix memory leaks 2019-09-10 10:33:46 +01:00
natsemi
neterion vxge: fix return of a free'd memblock on a failed dma mapping 2019-05-16 19:41:21 +02:00
netronome nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs 2019-10-05 13:09:33 +02:00
ni net: nixge: Don't store skb in app4 field of descriptor 2018-08-13 08:49:37 -07:00
nuvoton w90p910_ether: remove incorrect __init annotation 2019-01-13 09:51:00 +01:00
nvidia net: nvidia: forcedeth: Replace GFP_ATOMIC with GFP_KERNEL in nv_probe() 2018-07-27 13:45:14 -07:00
nxp net: lpc-enet: fix printk format strings 2019-10-05 13:09:43 +02:00
oki-semi
packetengines
pasemi
qlogic net: qlogic: Fix memory leak in ql_alloc_large_buffers 2019-10-07 18:57:22 +02:00
qualcomm net: qualcomm: rmnet: Fix incorrect UL checksum offload logic 2019-08-09 17:52:32 +02:00
rdc
realtek r8169: don't use MSI before RTL8168d 2019-08-09 17:52:33 +02:00
renesas ravb: Fix use-after-free ravb_tstamp_skb 2019-09-10 10:33:48 +01:00
rocker
samsung net: ethernet: sxgbe: mark expected switch fall-throughs 2018-08-07 17:54:20 -07:00
seeq net: seeq: Fix the function used to release some memory in an error handling path 2019-09-21 07:17:10 +02:00
sfc sfc-falcon: remove ndo_poll_controller 2018-09-28 11:12:29 -07:00
sgi net: sgi: fix return type of ndo_start_xmit function 2018-09-21 19:15:14 -07:00
silan
sis sis900: fix TX completion 2019-07-21 09:03:07 +02:00
smsc ARM: 32-bit SoC platform updates 2018-08-23 13:44:43 -07:00
socionext net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM 2018-12-21 14:15:14 +01:00
stmicro net: stmmac: dwmac-rk: Don't fail if phy regulator is absent 2019-09-10 10:33:39 +01:00
sun niu: fix missing checks of niu_pci_eeprom_read 2019-02-12 19:47:17 +01:00
synopsys net: ethernet: Use existing define with polynomial 2018-07-27 19:16:37 +08:00
tehuti
ti net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set 2019-06-11 12:20:48 +02:00
toshiba net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx 2019-09-10 10:33:43 +01:00
tundra net: tundra: tsi108: use spin_lock_irqsave instead of spin_lock_irq in IRQ context 2019-09-10 10:33:42 +01:00
via
wiznet net: wiznet: fix return type of ndo_start_xmit function 2018-09-21 19:15:15 -07:00
xilinx net: axienet: Fix race condition causing TX hang 2019-07-26 09:14:04 +02:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c net: jme: Replace mdelay() with msleep() and usleep_range() in jme_wait_link() 2018-07-27 13:45:14 -07:00
jme.h
Kconfig net: change Exar/Neterion menu items to be alphabetical 2018-08-01 09:49:02 -07:00
korina.c
lantiq_etop.c MIPS: lantiq: dma: add dev pointer 2018-09-11 23:33:19 -07:00
Makefile net: change Exar/Neterion menu items to be alphabetical 2018-08-01 09:49:02 -07:00
netx-eth.c