diff options
author | Wang Hai <[email protected]> | 2024-10-15 22:48:02 +0800 |
---|---|---|
committer | Andrew Lunn <[email protected]> | 2024-10-19 16:06:08 -0500 |
commit | e4dd8bfe0f6a23acd305f9b892c00899089bd621 (patch) | |
tree | 47f5c60463b4c45c4b542e1bc6af038767c1b0ab /tools/perf/scripts/python/gecko.py | |
parent | 2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8 (diff) |
be2net: fix potential memory leak in be_xmit()
The be_xmit() returns NETDEV_TX_OK without freeing skb
in case of be_xmit_enqueue() fails, add dev_kfree_skb_any() to fix it.
Fixes: 760c295e0e8d ("be2net: Support for OS2BMC.")
Signed-off-by: Wang Hai <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Kalesh AP <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Andrew Lunn <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions