summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2017-05-10 10:30:16 -0700
committerThomas Monjalon <thomas@monjalon.net>2017-05-10 21:41:25 +0200
commit5e0fbcf9fb31f456c54dcc548e5de747a28c5053 (patch)
treecce92ba09e2c86dc4cd73f1f5595ea75c1952da6 /drivers/net/mlx5/mlx5_trigger.c
parentfa81d3b9702a07408061f13f8f0e21a023158a77 (diff)
downloaddpdk-5e0fbcf9fb31f456c54dcc548e5de747a28c5053.zip
dpdk-5e0fbcf9fb31f456c54dcc548e5de747a28c5053.tar.gz
dpdk-5e0fbcf9fb31f456c54dcc548e5de747a28c5053.tar.xz
net/mlx5: fix rollback when starting device
In mlx5_dev_start(), the spinlock isn't released when returning error. Fixes: c8d4ee50cc85 ("net/mlx5: fix startup when flow cannot be applied") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
-rw-r--r--drivers/net/mlx5/mlx5_trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index 229b05e..8c5aa69 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -109,6 +109,7 @@ error:
priv_mac_addrs_disable(priv);
priv_destroy_hash_rxqs(priv);
priv_flow_stop(priv);
+ priv_unlock(priv);
return -err;
}