diff options
| author | Wang Hai <wanghai38@huawei.com> | 2024-10-14 22:37:04 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-01 01:58:22 +0100 |
| commit | b01fbbf385849231e62ce18291eaaf74f1f30f75 (patch) | |
| tree | 1f5881ea0d81a6c1a1455378d411f477b65e5724 /kernel | |
| parent | 0017189d60577896ccffd8891fd14f7847f7f27f (diff) | |
| download | linux-b01fbbf385849231e62ce18291eaaf74f1f30f75.tar.gz linux-b01fbbf385849231e62ce18291eaaf74f1f30f75.tar.bz2 linux-b01fbbf385849231e62ce18291eaaf74f1f30f75.zip | |
net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
[ Upstream commit 99714e37e8333bbc22496fe80f241d5b35380e83 ]
The axienet_start_xmit() returns NETDEV_TX_OK without freeing skb
in case of dma_map_single() fails, add dev_kfree_skb_any() to fix it.
Fixes: 71791dc8bdea ("net: axienet: Check for DMA mapping errors")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://patch.msgid.link/20241014143704.31938-1-wanghai38@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
