OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlx5/core
Dinghao Liu 5b0bb12c58 net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups
When mlx5_create_flow_group() fails, ft->g should be
freed just like when kvzalloc() fails. The caller of
mlx5e_create_l2_table_groups() does not catch this
issue on failure, which leads to memleak.

Fixes: 33cfaaa8f3 ("net/mlx5e: Split the main flow steering table")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-01-07 12:22:51 -08:00
..
accel net/mlx5: IPsec: make spdxcheck.py happy 2020-09-16 14:34:32 +02:00
diag net/mlx5: Add sampler destination type 2020-11-26 18:43:47 -08:00
en net/mlx5e: In skb build skip setting mark in switchdev mode 2021-01-07 12:22:50 -08:00
en_accel net/mlx5e: Fix SWP offsets when vlan inserted by driver 2021-01-07 12:22:49 -08:00
esw net/mlx5: E-Switch, fix changing vf VLANID 2021-01-07 12:22:49 -08:00
fpga net/mlx5: Cleanup kernel-doc warnings 2020-11-05 12:09:31 -08:00
ipoib net/mlx5_core: Clean driver version and name 2020-12-04 14:46:55 +02:00
lib net/mlx5e: Fix VXLAN synchronization after function reload 2020-11-05 12:17:06 -08:00
steering Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-11 22:29:38 -08:00
Makefile net/mlx5e: Add TX PTP port object support 2020-12-08 11:28:46 -08:00
alloc.c net/mlx5: Use dma device access helper 2020-09-30 21:26:30 -07:00
cmd.c net/mlx5: Avoid exposing driver internal command helpers 2020-11-26 18:43:48 -08:00
cq.c net: mlx: convert tasklets to use new tasklet_setup() API 2020-09-14 13:02:37 -07:00
debugfs.c net/mlx5: cmd: Fix memset with byte count warning 2020-05-29 21:20:21 -07:00
dev.c net/mlx5: Simplify eswitch mode check 2020-12-06 07:43:54 +02:00
devlink.c Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-12-07 18:36:21 -08:00
devlink.h net/mlx5e: Add devlink fdb_large_groups parameter 2020-02-27 16:40:19 -08:00
ecpf.c net/mlx5: Enable host PF HCA after eswitch is initialized 2020-11-26 18:45:03 -08:00
ecpf.h net/mlx5: Enable host PF HCA after eswitch is initialized 2020-11-26 18:45:03 -08:00
en.h A treewide cleanup of interrupt descriptor (ab)use with all sorts of racy 2020-12-24 13:50:23 -08:00
en_arfs.c net/mlx5e: API to manipulate TTC rules destinations 2020-06-27 14:00:18 -07:00
en_common.c net/mlx5e: Add support for PCI relaxed ordering 2020-07-28 02:37:49 -07:00
en_dcbnl.c net/mlx5e: Fix port buffers cell size value 2020-07-09 19:27:07 -07:00
en_dim.c
en_ethtool.c net/mlx5e: ethtool, Fix restriction of autoneg with 56G 2021-01-07 12:22:50 -08:00
en_fs.c net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups 2021-01-07 12:22:51 -08:00
en_fs_ethtool.c xsk: i40e: ice: ixgbe: mlx5: Pass buffer pool to driver instead of umem 2020-08-31 21:15:03 +02:00
en_main.c net/mlx5e: Add missing capability check for uplink follow 2021-01-07 12:22:48 -08:00
en_rep.c net/mlx5e: Connect ethernet part to auxiliary bus 2020-12-06 07:37:38 +02:00
en_rep.h net/mlx5e: Connect ethernet part to auxiliary bus 2020-12-06 07:37:38 +02:00
en_rx.c net/mlx5e: Remove duplicated include 2020-12-08 11:28:47 -08:00
en_selftest.c net/mlx5e: RX, Add a prefetch command for small L1_CACHE_BYTES 2020-08-26 15:55:53 -07:00
en_stats.c net/mlx5e: Add TX port timestamp support 2020-12-08 11:28:47 -08:00
en_stats.h net/mlx5e: Add TX port timestamp support 2020-12-08 11:28:47 -08:00
en_tc.c net/mlx5: Simplify eswitch mode check 2020-12-06 07:43:54 +02:00
en_tc.h net/mlx5e: Fix IPsec packet drop by mlx5e_tc_update_skb 2020-11-17 11:50:52 -08:00
en_tx.c net/mlx5e: Fix SWP offsets when vlan inserted by driver 2021-01-07 12:22:49 -08:00
en_txrx.c A treewide cleanup of interrupt descriptor (ab)use with all sorts of racy 2020-12-24 13:50:23 -08:00
eq.c net/mlx5: Arm only EQs with EQEs 2020-12-08 11:28:48 -08:00
eswitch.c Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-12-07 18:36:21 -08:00
eswitch.h net/mlx5: E-switch, Move devlink eswitch ports closer to eswitch 2020-09-30 21:26:29 -07:00
eswitch_offloads.c net: mlx5: convert comma to semicolon 2020-12-09 16:23:08 -08:00
eswitch_offloads_termtbl.c net/mlx5: Refactor tc flow attributes structure 2020-09-23 15:44:35 -07:00
events.c net/mlx5: Fix memory leak in mlx5_events_init 2020-05-22 17:28:46 -07:00
fs_cmd.c net/mlx5: Treat host PF vport as other (non eswitch manager) vport 2020-11-26 18:45:03 -08:00
fs_cmd.h
fs_core.c mlx5-next-2020-12-02 2020-12-02 17:29:23 -08:00
fs_core.h net/mlx5: Add misc4 to mlx5_ifc_fte_match_param_bits 2020-11-26 18:43:47 -08:00
fs_counters.c net/mlx5e: Replace zero-length array with flexible-array member 2020-02-19 09:13:10 +02:00
fw.c net/mlx5: IPsec: Add HW crypto offload support 2020-07-16 16:36:44 -07:00
fw_reset.c net/mlx5: Add support for fw live patch event 2020-10-09 12:06:53 -07:00
fw_reset.h net/mlx5: Add devlink param enable_remote_dev_reset support 2020-10-09 12:06:53 -07:00
health.c net/mlx5: Handle sync reset request event 2020-10-09 12:06:52 -07:00
lag.c net/mlx5: Check if lag is supported before creating one 2021-01-07 12:22:48 -08:00
lag.h net/mlx5e: Add LAG warning if bond slave is not lag master 2020-09-15 11:59:51 -07:00
lag_mp.c net/mlx5e: Add LAG warning if bond slave is not lag master 2020-09-15 11:59:51 -07:00
lag_mp.h net/mlx5: Use a separate work queue for fib event handling 2020-03-29 23:42:20 -07:00
main.c net/mlx5: Release devlink object if adev fails 2021-01-07 12:22:50 -08:00
mcg.c net/mlx5: Update mcg.c new cmd interface 2020-04-23 21:42:11 +03:00
mlx5_core.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2020-12-07 18:36:21 -08:00
mr.c net/mlx5: Update mr.c new cmd interface 2020-04-23 21:42:12 +03:00
pagealloc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-12-03 15:44:09 -08:00
pci_irq.c net/mlx5: Fix request_irqs error flow 2020-10-02 10:59:56 -07:00
pd.c net/mlx5: Update pd.c new cmd interface 2020-04-23 21:42:13 +03:00
port.c net/mlx5: Refactor query port speed functions 2020-09-17 19:33:02 +03:00
rdma.c net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address 2021-01-07 12:22:48 -08:00
rdma.h
rl.c net/mlx5: Update rl.c new cmd interface 2020-04-23 21:42:14 +03:00
sriov.c net/mlx5: E-switch, Protect eswitch mode changes 2020-03-25 23:19:25 -07:00
transobj.c net/mlx5: Update transobj.c new cmd interface 2020-04-23 21:42:16 +03:00
uar.c net/mlx5: Update uar.c new cmd interface 2020-04-23 21:42:14 +03:00
vport.c net/mlx5: Use fallthrough pseudo-keyword 2020-07-28 02:37:55 -07:00
wq.c
wq.h net/mlx5e: Add helper to get the RQ WQE counter 2020-07-02 21:05:18 -07:00