Re: [PATCH v2 net] be2net: fix potential memory leak in be_xmit()
From: patchwork-bot+netdevbpf
Date: Sun Oct 20 2024 - 10:53:12 EST
Hello:
This patch was applied to netdev/net.git (main)
by Andrew Lunn <andrew@xxxxxxx>:
On Tue, 15 Oct 2024 22:48:02 +0800 you wrote:
> 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@xxxxxxxxxx>
> ---
> v1->v2: Add label drop_skb for dev_kfree_skb_any()
> drivers/net/ethernet/emulex/benet/be_main.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Here is the summary with links:
- [v2,net] be2net: fix potential memory leak in be_xmit()
https://git.kernel.org/netdev/net/c/e4dd8bfe0f6a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html