Re: [PATCH net] net/mlx5e: TC, Fix double free of branch in failure
From: patchwork-bot+netdevbpf
Date: Fri Nov 06 2026 - 05:02:45 EST
Hello:
This patch was applied to netdev/net.git (main)
by Dave Miller <davem@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
On Wed, 28 Oct 2026 15:57:02 +0100 you wrote:
> When allocating the false branch fails in parse_branch_ctrl(), the
> already allocated true branch is freed but attr->branch_true is left
> pointing to it. The caller parse_tc_actions() fails the flow, and
> free_flow_post_acts(), mlx5_free_flow_attr_actions() which calls again
> free_branch_attr() on attr->branch_true.
>
> Clear the pointer after freeing it.
>
> [...]
Here is the summary with links:
- [net] net/mlx5e: TC, Fix double free of branch in failure
https://git.kernel.org/netdev/net/c/31f9b43a3bb3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html