net/mlx5: Release FTE lock in error flow
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 28 Dec 2016 12:58:36 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:36:51 +0000 (14:36 -0500)
commit9b8c514291a83e53c073b473bdca6267f17a02c2
tree8e37c77f6ca048fb0d9955bc1405b23d3f78acfc
parent077b1e8069b9b74477b01d28f6b83774dc19a142
net/mlx5: Release FTE lock in error flow

Release the FTE lock when adding rule to the FTE has failed.

Fixes: 0fd758d6112f ('net/mlx5: Don't unlock fte while still using it')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@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/fs_core.c