Re: [PATCH] mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()

From: patchwork-bot+netdevbpf

Date: Thu Jun 11 2026 - 19:01:35 EST


Hello:

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

On Tue, 9 Jun 2026 08:37:09 +0000 you wrote:
> When mlxsw_sp_port_lag_index_get() fails, mlxsw_sp_port_lag_join()
> returns an error without releasing the lag reference obtained by
> the earlier mlxsw_sp_lag_get(). All other error paths in the
> function jump to the cleanup label that ends with
> mlxsw_sp_lag_put(), so this is a single missed release.
>
> Fix the leak by replacing the bare 'return err' with a goto to the
> existing error cleanup label, which will drop the reference safely.
>
> [...]

Here is the summary with links:
- mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()
https://git.kernel.org/netdev/net-next/c/41c8c1d65b32

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