linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlx4
Wenwen Wang 48ec7014c5 net/mlx4_en: fix a memory leak bug
In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through
kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS
indirection. However, if mlx4_qp_alloc() fails, the allocated
'rss_map->indir_qp' is not deallocated, leading to a memory leak bug.

To fix the above issue, add the 'qp_alloc_err' label to free
'rss_map->indir_qp'.

Fixes: 4931c6ef04 ("net/mlx4_en: Optimized single ring steering")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
2019-08-13 19:42:43 -07:00
..
alloc.c mellanox: Switch to bitmap_zalloc() 2019-03-04 10:19:33 -08:00
catas.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
cmd.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
cq.c net/mlx4_core: Fix error handling when initializing CQ bufs in the driver 2019-01-24 21:48:26 -08:00
crdump.c
en_clock.c
en_cq.c net/mlx4_en: remove fallback after kzalloc_node() 2018-12-17 11:18:02 -08:00
en_dcb_nl.c
en_ethtool.c net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query 2019-05-20 11:33:57 -07:00
en_main.c net/mlx4_en: Use minimal rx and tx ring sizes on kdump kernel 2018-10-09 11:08:48 -07:00
en_netdev.c net/mlx4_en: fix spelling mistake: "quiting" -> "quitting" 2019-02-18 12:06:42 -08:00
en_port.c
en_port.h
en_resources.c
en_rx.c net/mlx4_en: fix a memory leak bug 2019-08-13 19:42:43 -07:00
en_selftest.c
en_tx.c drivers: mellanox: use netdev_xmit_more() helper 2019-04-01 18:35:02 -07:00
eq.c ethernet: remove redundant memset 2019-07-15 11:06:27 -07:00
fw_qos.c
fw_qos.h
fw.c net/mlx4_core: Add masking for a few queries on HCA caps 2019-01-24 21:48:26 -08:00
fw.h
icm.c net/mlx4: replace pci_{,un}map_sg with dma_{,un}map_sg 2019-01-07 05:14:17 -08:00
icm.h net/mlx4: Get rid of page operation after dma_alloc_coherent 2019-01-07 05:14:17 -08:00
intf.c
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
main.c devlink: publish params only after driver init is done 2019-02-08 15:02:49 -08:00
Makefile
mcg.c net/mlx4_core: Change the error print to info print 2019-05-14 15:38:59 -07:00
mlx4_en.h net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
mlx4_stats.h
mlx4.h net/mlx4: Fix UBSAN warning of signed integer overflow 2018-11-15 16:09:31 -08:00
mr.c net/mlx4_core: Zero out lkey field in SW2HW_MPT fw command 2018-11-15 16:09:30 -08:00
pd.c
port.c net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query 2019-05-20 11:33:57 -07:00
profile.c net/mlx4_core: Allow MTTs starting at any index 2018-07-25 16:30:38 -07:00
qp.c
reset.c
resource_tracker.c net/mlx4_core: Fix qp mtt size calculation 2019-03-12 15:00:15 -07:00
sense.c
srq.c