]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix memory leak if refreshing TIRs fails
authorKamal Heib <kamalh@mellanox.com>
Sun, 28 Aug 2016 22:13:48 +0000 (01:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Aug 2016 03:24:15 +0000 (23:24 -0400)
commit4d9bc720923bd4dbb71e0fd6be95f9c454baeac4
treea84ae34e39dd7d16c5cb1b5afbf17bf352a14a7c
parent22b3f5f97aef3fd8b029ec60c396cae0d194b180
net/mlx5e: Fix memory leak if refreshing TIRs fails

Free 'in' command object also when mlx5_core_modify_tir fails.

Fixes: 9797aff8fb38 ("net/mlx5e: TIRs management refactoring")
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_common.c