Re: [PATCH net v2] bnxt: fix memory leak in bnxt_queue_mem_alloc error cases

From: patchwork-bot+netdevbpf

Date: Mon Aug 03 2026 - 17:44:32 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 29 Jul 2026 15:01:31 -0700 you wrote:
> There is a small memory leak in bnxt_queue_mem_alloc:
> when bnxt_alloc_rx_agg_bmap() succeeds
> but bnxt_alloc_one_tpa_info() later fails,
> the rx_agg_bmap allocated by bnxt_alloc_rx_agg_bmap()
> is not freed in the fallthrough cleanup cases.
>
> Free the rx_agg_bmap in the err_free_rx_agg_ring case
> and initialize clone->rx_agg_bmap = NULL earlier in the function
> to allow for safe fallthrough.
>
> [...]

Here is the summary with links:
- [net,v2] bnxt: fix memory leak in bnxt_queue_mem_alloc error cases
https://git.kernel.org/netdev/net/c/d1000fd7995e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html