diff options
author | Alex Vesker <valex@mellanox.com> | 2019-10-29 19:18:10 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-11-07 01:03:54 +0300 |
commit | 260986fcff81a0c147a5d169f1ad52aab95804d5 (patch) | |
tree | 2def409a99e20e680fa5c8377a982bc4bb88cfc7 /drivers/net | |
parent | 22f83150f03e119f61f4d00d6884639871ba6859 (diff) | |
download | linux-260986fcff81a0c147a5d169f1ad52aab95804d5.tar.xz |
net/mlx5: DR, Fix memory leak during rule creation
During rule creation hw_ste_arr was not freed.
Fixes: 41d07074154c ("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c index e8b656075c6f..5dcb8baf491a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c @@ -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: |