Re: [PATCH v2] bnx2x: fix resource leaks in bnx2x_init_one() error paths
From: patchwork-bot+netdevbpf
Date: Thu Jun 11 2026 - 18:20:50 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 9 Jun 2026 15:46:10 +0800 you wrote:
> bnx2x_init_one() falls through to the common memory cleanup path for
> several failures after probe has already acquired additional resources.
>
> If register_netdev() fails after bnx2x_set_int_mode(), MSI/MSI-X remains
> enabled. If later failures happen after bnx2x_iov_init_one(), PF SR-IOV
> state can be left allocated. Also, failures after bnx2x_vfpf_acquire()
> must release the PF resources before freeing the VF-PF mailbox allocated
> by bnx2x_vf_pci_alloc().
>
> [...]
Here is the summary with links:
- [v2] bnx2x: fix resource leaks in bnx2x_init_one() error paths
https://git.kernel.org/netdev/net-next/c/034b95cf69e0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html