diff options
author | Alex Vesker <valex@mellanox.com> | 2019-10-29 18:18:10 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-11-06 14:03:54 -0800 |
commit | 260986fcff81a0c147a5d169f1ad52aab95804d5 (patch) | |
tree | 2def409a99e20e680fa5c8377a982bc4bb88cfc7 /drivers | |
parent | 22f83150f03e119f61f4d00d6884639871ba6859 (diff) | |
download | linux-riscv-260986fcff81a0c147a5d169f1ad52aab95804d5.tar.gz linux-riscv-260986fcff81a0c147a5d169f1ad52aab95804d5.tar.bz2 linux-riscv-260986fcff81a0c147a5d169f1ad52aab95804d5.zip |
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')
-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: |