aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorWang Hai <[email protected]>2024-10-14 22:42:50 +0800
committerJakub Kicinski <[email protected]>2024-10-15 10:59:29 -0700
commitc186b7a7f2387d9e09ad408420570be025b187c5 (patch)
treee5a3527628feee0940dc2c8768eb3002a8adc912 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent99714e37e8333bbc22496fe80f241d5b35380e83 (diff)
net: ethernet: rtsn: fix potential memory leak in rtsn_start_xmit()
The rtsn_start_xmit() returns NETDEV_TX_OK without freeing skb in case of skb->len being too long, add dev_kfree_skb_any() to fix it. Fixes: b0d3969d2b4d ("net: ethernet: rtsn: Add support for Renesas Ethernet-TSN") Signed-off-by: Wang Hai <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions