From: Yongseok Koh Date: Wed, 10 May 2017 17:30:16 +0000 (-0700) Subject: net/mlx5: fix rollback when starting device X-Git-Tag: spdx-start~3224 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5e0fbcf9fb31f456c54dcc548e5de747a28c5053;p=dpdk.git 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 Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c index 229b05e79d..8c5aa69109 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; }