diff options
author | Wang Hai <wanghai38@huawei.com> | 2024-10-12 14:04:34 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-15 19:59:20 +0300 |
commit | cf57b5d7a2aad456719152ecd12007fe031628a3 (patch) | |
tree | 2d9614f546f7de1c9282351aa4f038844ac58004 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a1494d532e28598bde7a5544892ef9c7dbfafa93 (diff) | |
download | linux-cf57b5d7a2aad456719152ecd12007fe031628a3.tar.xz |
net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
The greth_start_xmit_gbit() returns NETDEV_TX_OK without freeing skb
in case of skb->len being too long, add dev_kfree_skb() to fix it.
Fixes: d4c41139df6e ("net: Add Aeroflex Gaisler 10/100/1G Ethernet MAC driver")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://patch.msgid.link/20241012110434.49265-1-wanghai38@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions