net/mlx5: DR, Fix memory leak during rule creation
During rule creation hw_ste_arr was not freed.
Fixes: 41d0707415
("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
22f83150f0
commit
260986fcff
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user