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:59:01 +0800
committerJakub Kicinski <[email protected]>2024-10-15 17:10:27 -0700
commitfed07d3eb8a8d9fcc0e455175a89bc6445d6faed (patch)
tree227998c82d672e56744c97b94fe69c5ea6e3989b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentc401ed1c709948e57945485088413e1bb5e94bd1 (diff)
net: bcmasp: fix potential memory leak in bcmasp_xmit()
The bcmasp_xmit() returns NETDEV_TX_OK without freeing skb in case of mapping fails, add dev_kfree_skb() to fix it. Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller") Signed-off-by: Wang Hai <[email protected]> Acked-by: Florian Fainelli <[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