WSL2-Linux-Kernel/drivers/net/ethernet/sfc
Zhang Changzhong 182ef20f0f sfc: fix potential memleak in __ef100_hard_start_xmit()
[ Upstream commit aad98abd5c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:41:06 +01:00
..
falcon sfc: The RX page_ring is optional 2022-01-11 15:35:13 +01:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile
bitfield.h
ef10.c sfc: Change VF mac via PF as first preference if available. 2022-10-29 10:12:55 +02:00
ef10_regs.h
ef10_sriov.c sfc: fix use after free when disabling sriov 2022-07-21 21:24:29 +02:00
ef10_sriov.h
ef100.c
ef100.h
ef100_ethtool.c
ef100_ethtool.h
ef100_netdev.c sfc: fix potential memleak in __ef100_hard_start_xmit() 2022-12-02 17:41:06 +01:00
ef100_netdev.h
ef100_nic.c sfc_ef100: potential dereference of null pointer 2021-12-22 09:32:44 +01:00
ef100_nic.h
ef100_regs.h
ef100_rx.c
ef100_rx.h
ef100_tx.c
ef100_tx.h
efx.c pci-v5.15-changes 2021-09-07 19:13:42 -07:00
efx.h
efx_channels.c sfc: fix TX channel offset when using legacy interrupts 2022-09-28 11:11:50 +02:00
efx_channels.h
efx_common.c sfc: use DEVICE_ATTR_*() macro 2021-05-23 17:18:42 -07:00
efx_common.h
enum.h
ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
ethtool_common.c sfc: Fix reading non-legacy supported link modes 2021-11-06 14:13:30 +01:00
ethtool_common.h
farch.c sfc: farch: fix compile warning in efx_farch_dimension_resources() 2021-05-21 13:52:26 -07:00
farch_regs.h
filter.h sfc: include vport_id in filter spec hash and equal() 2022-10-29 10:12:57 +02:00
io.h
mcdi.c sfc: extend the locking on mcdi->seqno 2022-03-19 13:47:50 +01:00
mcdi.h
mcdi_filters.c
mcdi_filters.h
mcdi_functions.c
mcdi_functions.h
mcdi_mon.c
mcdi_pcol.h
mcdi_port.c
mcdi_port.h
mcdi_port_common.c sfc: Export fibre-specific supported link modes 2021-10-21 12:38:34 +01:00
mcdi_port_common.h
mtd.c
net_driver.h sfc: fix considering that all channels have TX queues 2022-06-14 18:36:11 +02:00
nic.c net:sfc: fix non-freed irq in legacy irq mode 2021-05-21 14:51:10 -07:00
nic.h
nic_common.h
ptp.c sfc: disable softirqs for ptp TX 2022-08-03 12:03:54 +02:00
ptp.h net: sfc: fix memory leak due to ptp channel 2022-05-18 10:26:49 +02:00
rx.c sfc: Remove rcu_read_lock() around XDP program invocation 2021-06-24 19:46:01 +02:00
rx_common.c sfc: include vport_id in filter spec hash and equal() 2022-10-29 10:12:57 +02:00
rx_common.h
selftest.c
selftest.h
siena.c
siena_sriov.c sfc: Don't use netif_info before net_device setup 2021-10-21 12:39:13 +01:00
siena_sriov.h
sriov.c
sriov.h
tx.c sfc: fix null pointer dereference in efx_hard_start_xmit 2022-09-28 11:11:50 +02:00
tx.h
tx_common.c net: sfc: fix using uninitialized xdp tx_queue 2022-04-13 20:59:19 +02:00
tx_common.h
tx_tso.c
vfdi.h
workarounds.h