1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/sfc
Zhang Changzhong aad98abd5c sfc: fix potential memleak in __ef100_hard_start_xmit()
The __ef100_hard_start_xmit() returns NETDEV_TX_OK without freeing skb
in error handling case, add dev_kfree_skb_any() to fix it.

Fixes: 51b35a454e ("sfc: skeleton EF100 PF driver")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/1668671409-10909-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-11-22 11:28:16 +01:00
..
falcon net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
siena net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
bitfield.h sfc: extend bitfield macros to 19 fields 2020-11-13 15:33:03 -08:00
ef10.c sfc: Change VF mac via PF as first preference if available. 2022-10-15 11:06:44 +01:00
ef10_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ef10_sriov.c sfc: move table locking into filter_table_{probe,remove} methods 2022-07-29 21:22:06 -07:00
ef10_sriov.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
ef100.c sfc: insert default MAE rules to connect VFs to representors 2022-07-29 21:22:06 -07:00
ef100.h sfc: skeleton EF100 PF driver 2020-07-27 12:26:55 -07:00
ef100_ethtool.c sfc: optional logging of TC offload errors 2022-09-28 09:43:22 +01:00
ef100_ethtool.h sfc: skeleton EF100 PF driver 2020-07-27 12:26:55 -07:00
ef100_netdev.c sfc: fix potential memleak in __ef100_hard_start_xmit() 2022-11-22 11:28:16 +01:00
ef100_netdev.h sfc: hook up ef100 representor TX 2022-07-22 12:50:06 +01:00
ef100_nic.c sfc: bind blocks for TC offload on EF100 2022-09-28 09:43:22 +01:00
ef100_nic.h sfc: determine wire m-port at EF100 PF probe time 2022-07-29 21:22:06 -07:00
ef100_regs.h sfc: update EF100 register descriptions 2022-07-22 12:50:06 +01:00
ef100_rep.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
ef100_rep.h sfc: add a hashtable for offloaded TC rules 2022-09-28 09:43:22 +01:00
ef100_rx.c sfc: receive packets from EF100 VFs into representors 2022-07-29 21:22:06 -07:00
ef100_rx.h sfc: check hash is valid before using it 2020-08-14 14:07:16 -07:00
ef100_sriov.c sfc: add skeleton ef100 VF representors 2022-07-22 12:50:06 +01:00
ef100_sriov.h sfc: add skeleton ef100 VF representors 2022-07-22 12:50:06 +01:00
ef100_tx.c sfc: support passing a representor to the EF100 TX path 2022-07-22 12:50:06 +01:00
ef100_tx.h sfc: support passing a representor to the EF100 TX path 2022-07-22 12:50:06 +01:00
efx.c sfc: Fix an error handling path in efx_pci_probe() 2022-11-01 09:09:47 -07:00
efx.h sfc: attach/detach EF100 representors along with their owning PF 2022-07-22 12:50:06 +01:00
efx_channels.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
efx_channels.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-05-12 16:15:30 -07:00
efx_common.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
efx_common.h sfc: attach/detach EF100 representors along with their owning PF 2022-07-22 12:50:06 +01:00
enum.h sfc: Remove duplicate argument 2021-04-14 13:55:07 -07:00
ethtool.c sfc: Encapsulate access to netdev_priv() 2022-06-29 13:40:47 +01:00
ethtool_common.c sfc: optional logging of TC offload errors 2022-09-28 09:43:22 +01:00
ethtool_common.h sfc: optional logging of TC offload errors 2022-09-28 09:43:22 +01:00
farch_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
filter.h sfc: include vport_id in filter spec hash and equal() 2022-10-19 17:08:43 -07:00
io.h sfc_ef100: register accesses on EF100 2020-07-27 12:26:55 -07:00
Kconfig sfc/siena: Make MCDI logging support specific for Siena 2022-05-12 16:49:30 -07:00
mae.c sfc: bare bones TC offload on EF100 2022-09-28 09:43:22 +01:00
mae.h sfc: bare bones TC offload on EF100 2022-09-28 09:43:22 +01:00
Makefile sfc: bind blocks for TC offload on EF100 2022-09-28 09:43:22 +01:00
mcdi.c sfc: detect ef100 MAE admin privilege/capability at probe time 2022-07-22 12:50:06 +01:00
mcdi.h sfc: bare bones TC offload on EF100 2022-09-28 09:43:22 +01:00
mcdi_filters.c sfc: use a dynamic m-port for representor RX and set it promisc 2022-07-29 21:22:07 -07:00
mcdi_filters.h sfc: move table locking into filter_table_{probe,remove} methods 2022-07-29 21:22:06 -07:00
mcdi_functions.c sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
mcdi_functions.h sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
mcdi_mon.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
mcdi_pcol.h sfc: update MCDI protocol headers 2022-07-19 13:37:04 -07:00
mcdi_pcol_mae.h sfc: insert default MAE rules to connect VFs to representors 2022-07-29 21:22:06 -07:00
mcdi_port.c sfc: Encapsulate access to netdev_priv() 2022-06-29 13:40:47 +01:00
mcdi_port.h sfc: move NIC-specific mcdi_port declarations out of common header 2020-06-30 13:09:09 -07:00
mcdi_port_common.c ethernet/sfc: remove redundant rc variable 2022-01-04 12:41:41 +00:00
mcdi_port_common.h sfc: coding style cleanups in mcdi_port_common.c 2020-09-08 20:14:33 -07:00
mtd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
net_driver.h sfc: optional logging of TC offload errors 2022-09-28 09:43:22 +01:00
nic.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
nic.h sfc: Disable Siena support 2022-05-04 11:18:08 +01:00
nic_common.h sfc: The size of the RX recycle ring should be more flexible 2022-02-01 20:34:59 -08:00
ptp.c sfc: support PTP over Ethernet 2022-09-07 12:23:25 +01:00
ptp.h net: sfc: fix memory leak due to ptp channel 2022-05-09 10:01:48 +01:00
rx.c bpf: Let bpf_warn_invalid_xdp_action() report more info 2021-12-13 22:28:27 +01:00
rx_common.c sfc: include vport_id in filter spec hash and equal() 2022-10-19 17:08:43 -07:00
rx_common.h sfc: The size of the RX recycle ring should be more flexible 2022-02-01 20:34:59 -08:00
selftest.c sfc: define inner/outer csum offload TXQ types 2020-09-11 17:15:22 -07:00
selftest.h sfc: decouple TXQ type from label 2020-09-11 17:15:22 -07:00
sriov.c sfc: Encapsulate access to netdev_priv() 2022-06-29 13:40:47 +01:00
sriov.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tc.c sfc: bare bones TC offload on EF100 2022-09-28 09:43:22 +01:00
tc.h sfc: bare bones TC offload on EF100 2022-09-28 09:43:22 +01:00
tc_bindings.c sfc: bind indirect blocks for TC offload on EF100 2022-09-28 09:43:22 +01:00
tc_bindings.h sfc: bind indirect blocks for TC offload on EF100 2022-09-28 09:43:22 +01:00
tx.c sfc: fix null pointer dereference in efx_hard_start_xmit 2022-09-19 18:09:55 -07:00
tx.h sfc: select inner-csum-offload TX queues for skbs that need it 2020-09-11 17:15:22 -07:00
tx_common.c sfc: support passing a representor to the EF100 TX path 2022-07-22 12:50:06 +01:00
tx_common.h sfc: support passing a representor to the EF100 TX path 2022-07-22 12:50:06 +01:00
tx_tso.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vfdi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
workarounds.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00