Thread (2 messages) flat view 2 messages, 2 authors, 8d ago

Re: [PATCH net] bnge: Fix resource leak in bnge_init_nic() error path

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-06 16:51:17
Also in: lkml

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  5 Aug 2026 15:10:22 +0530 you wrote:
If bnge_init_chip() fails, bnge_init_nic() jumps to err_free_ring_grps
and returns immediately, skipping cleanup for RX ring pair buffers.

Remove the early return so execution falls through to
err_free_rx_ring_pair_bufs to properly free resources on error.

Fixes: 23df6aebf803 ("bng_en: Allocate stat contexts")
Signed-off-by: Bhargava Marreddy <redacted>
Reviewed-by: Dharmender Garg <redacted>
Reviewed-by: Rajashekar Hudumula <redacted>

[...]
Here is the summary with links:
  - [net] bnge: Fix resource leak in bnge_init_nic() error path
    https://git.kernel.org/netdev/net/c/bfec39ff1484

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help