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

Commit 260986fc authored by Alex Vesker's avatar Alex Vesker Committed by Saeed Mahameed
Browse files

net/mlx5: DR, Fix memory leak during rule creation



During rule creation hw_ste_arr was not freed.

Fixes: 41d07074 ("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: default avatarAlex Vesker <valex@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 22f83150
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1096,6 +1096,8 @@ dr_rule_create_rule_nic(struct mlx5dr_rule *rule,
	if (htbl)
		mlx5dr_htbl_put(htbl);

	kfree(hw_ste_arr);

	return 0;

free_ste: