Re: [PATCH net] bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
From: patchwork-bot+netdevbpf
Date: Mon Jun 22 2026 - 21:55:12 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sat, 20 Jun 2026 11:53:50 +0530 you wrote:
> If the allocation of fp[i].tpa_info fails, the error path will not free
> the struct bnx2x_fastpath allocated earlier, as it is not linked to the
> bp structure yet. Fix that by linking it immediately after allocation.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 15192a8cf8a8 ("bnx2x: Split the FP structure")
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [net] bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
https://git.kernel.org/netdev/net/c/a986fde914d8
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html