diff options
| author | Wang Hai <wanghai38@huawei.com> | 2024-10-15 22:41:48 +0800 |
|---|---|---|
| committer | Andrew Lunn <andrew@lunn.ch> | 2024-10-19 16:04:20 -0500 |
| commit | 2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8 (patch) | |
| tree | a23601d9f573c9d338b114992b21347a6605c665 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | net: pse-pd: Fix out of bound for loop (diff) | |
| download | linux-2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8.tar.gz linux-2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8.zip | |
net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
The sun3_82586_send_packet() returns NETDEV_TX_OK without freeing skb
in case of skb->len being too long, add dev_kfree_skb() to fix it.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Message-ID: <20241015144148.7918-1-wanghai38@huawei.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
