diff options
author | Wang Hai <wanghai38@huawei.com> | 2024-10-15 17:48:02 +0300 |
---|---|---|
committer | Andrew Lunn <andrew@lunn.ch> | 2024-10-20 00:06:08 +0300 |
commit | e4dd8bfe0f6a23acd305f9b892c00899089bd621 (patch) | |
tree | 47f5c60463b4c45c4b542e1bc6af038767c1b0ab /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8 (diff) | |
download | linux-e4dd8bfe0f6a23acd305f9b892c00899089bd621.tar.xz |
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 <wanghai38@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Message-ID: <20241015144802.12150-1-wanghai38@huawei.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions