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
ef10.c sfc: Change VF mac via PF as first preference if available. 2022-10-15 11:06:44 +01:00
ef10_regs.h
ef10_sriov.c sfc: move table locking into filter_table_{probe,remove} methods 2022-07-29 21:22:06 -07:00
ef10_sriov.h
ef100.c sfc: insert default MAE rules to connect VFs to representors 2022-07-29 21:22:06 -07:00
ef100.h
ef100_ethtool.c sfc: optional logging of TC offload errors 2022-09-28 09:43:22 +01:00
ef100_ethtool.h
ef100_netdev.c sfc: fix potential memleak in __ef100_hard_start_xmit() 2022-11-22 11:28:16 +01:00
ef100_netdev.h
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
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
ef100_sriov.c
ef100_sriov.h
ef100_tx.c
ef100_tx.h
efx.c sfc: Fix an error handling path in efx_pci_probe() 2022-11-01 09:09:47 -07:00
efx.h
efx_channels.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
efx_channels.h
efx_common.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
efx_common.h
enum.h
ethtool.c
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
filter.h sfc: include vport_id in filter spec hash and equal() 2022-10-19 17:08:43 -07:00
io.h
Kconfig
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
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
mcdi_functions.h
mcdi_mon.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
mcdi_pcol.h
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
mcdi_port.h
mcdi_port_common.c
mcdi_port_common.h
mtd.c
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
nic_common.h
ptp.c sfc: support PTP over Ethernet 2022-09-07 12:23:25 +01:00
ptp.h
rx.c
rx_common.c sfc: include vport_id in filter spec hash and equal() 2022-10-19 17:08:43 -07:00
rx_common.h
selftest.c
selftest.h
sriov.c
sriov.h
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
tx_common.c
tx_common.h
tx_tso.c
vfdi.h
workarounds.h