Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22f83150 authored by Alex Vesker's avatar Alex Vesker Committed by Saeed Mahameed
Browse files

net/mlx5: DR, Fix memory leak in modify action destroy



The rewrite data was no freed.

Fixes: 9db810ed ("net/mlx5: DR, Expose steering action functionality")
Signed-off-by: default avatarAlex Vesker <valex@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent f382b0df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1577,6 +1577,7 @@ int mlx5dr_action_destroy(struct mlx5dr_action *action)
		break;
	case DR_ACTION_TYP_MODIFY_HDR:
		mlx5dr_icm_free_chunk(action->rewrite.chunk);
		kfree(action->rewrite.data);
		refcount_dec(&action->rewrite.dmn->refcount);
		break;
	default: