net/mlx5: E-Switch, Fix error flow memory leak
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:13:56 +0000 (17:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:47 +0000 (14:04 -0400)
commit761e205b559be52852d85e0db4a034c9f57965f9
tree298b03456741834fec03a507b024bff9f1c08f10
parent831cae1daead92c4b9c3e149c6bc14853902c204
net/mlx5: E-Switch, Fix error flow memory leak

Fix memory leak in case query nic vport command failed.

Fixes: 81848731ff40 ('net/mlx5: E-Switch, Add SR-IOV (FDB) support')
Signed-off-by: Mohamad Haj Yahia <mohamad@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/eswitch.c