diff options
| author | Thomas Fourier <fourier.thomas@gmail.com> | 2026-10-28 15:57:02 +0100 |
|---|---|---|
| committer | Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb> | 2026-11-06 09:54:49 +0000 |
| commit | 31f9b43a3bb3d2201eadd147440252d0912dab21 (patch) | |
| tree | 0dbf50aacc6467f46269c4698f83420a5885e583 /scripts/const_structs.checkpatch | |
| parent | 475ff14ba558bb8857bca878f1d593784ccc4f0f (diff) | |
net/mlx5e: TC, Fix double free of branch in failure
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.
This bug is theoretical and was compile tested only.
Fixes: f86488cb4685 ("net/mlx5e: TC, initialize branch flow attributes")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Tested-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
