Re: [PATCH v2 net] bnx2x: fix null pointer dereference in bnx2x_free_mem_bp()
From: patchwork-bot+netdevbpf
Date: Mon Jul 20 2026 - 21:31:04 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 7 Jul 2026 11:16:16 +0530 you wrote:
> In one of the error path in bnx2x_alloc_mem_bp(), bnx2x_free_mem_bp()
> may be called with bp->fp uninitialized. And so, there could be a null
> pointer dereference in bnx2x_free_mem_bp(). Fix that by initializing the
> fp_array_size after the bp->fp pointer is correctly initialized.
>
> Fixes: c3146eb676e7 ("bnx2x: Correct memory preparation and release")
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Sashiko AI Review <sashiko-bot@xxxxxxxxxx>
> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [v2,net] bnx2x: fix null pointer dereference in bnx2x_free_mem_bp()
https://git.kernel.org/netdev/net-next/c/e354f7d60f14
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html