Re: [PATCH net v2] bnxt: fix memory leak in bnxt_queue_mem_alloc error cases
[email protected] Mon, 03 Aug 2026 21:40:05 +0000
| Newsgroups | org.kernel.vger.netdev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178579320564.2843613.14322317790285758887.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>: 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