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)
commitbf50082c15eb2bc47d1922e70f424c57f36646d5
treea84ae34e39dd7d16c5cb1b5afbf17bf352a14a7c
parentc8cf78fe100b0d152a1932327c24cefc0ba4bdbe
net/mlx5e: Fix memory leak if refreshing TIRs fails

Free 'in' command object also when mlx5_core_modify_tir fails.

Fixes: 724b2aa15126 ("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