Re: [PATCH] mlxsw: spectrum: Fix memory leak in mlxsw_sp_flower_stats()

From: patchwork-bot+netdevbpf

Date: Thu Nov 13 2025 - 20:40:40 EST


Hello:

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

On Wed, 12 Nov 2025 05:21:14 +0000 you wrote:
> The function mlxsw_sp_flower_stats() calls mlxsw_sp_acl_ruleset_get() to
> obtain a ruleset reference. If the subsequent call to
> mlxsw_sp_acl_rule_lookup() fails to find a rule, the function returns
> an error without releasing the ruleset reference, causing a memory leak.
>
> Fix this by using a goto to the existing error handling label, which
> calls mlxsw_sp_acl_ruleset_put() to properly release the reference.
>
> [...]

Here is the summary with links:
- mlxsw: spectrum: Fix memory leak in mlxsw_sp_flower_stats()
https://git.kernel.org/netdev/net/c/407a06507c23

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