aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2024-10-14 22:37:04 +0800
committerJakub Kicinski <kuba@kernel.org>2024-10-15 10:59:23 -0700
commit99714e37e8333bbc22496fe80f241d5b35380e83 (patch)
treefc981dc6a7eed83ea0b0b73a5f8e383b6d1fc722 /drivers/fpga/tests/fpga-bridge-test.c
parent56f51dfdff841bd07a31e86834283f4fee2f8c88 (diff)
net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
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>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions