Thread (4 messages) 4 messages, 4 authors, 9d ago

Re: [PATCH net] mlxsw: spectrum_router: destroy FIB hash table on bind failure

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-10-06 00:10:29

Hello:

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

On Fri, 02 Oct 2026 19:47:40 +0000 you wrote:
mlxsw_sp_fib_create() initializes fib->ht before binding the LPM tree.
If the bind fails, the error path releases the tree and frees fib without
destroying the initialized hash table, leaking its bucket allocation.

Destroy fib->ht on the post-initialization failure path.

Fixes: 2b52ce02e1d1 ("mlxsw: spectrum_router: Remove unnecessary prefix lengths from LPM tree")
Reported-by: Changyul Lee <redacted>
Assisted-by: LLM
Signed-off-by: Sang-Hoon Choi <redacted>

[...]
Here is the summary with links:
  - [net] mlxsw: spectrum_router: destroy FIB hash table on bind failure
    https://git.kernel.org/netdev/net-next/c/a089139eb47b

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