net/mlx5: fix rollback when starting device
authorYongseok Koh <yskoh@mellanox.com>
Wed, 10 May 2017 17:30:16 +0000 (10:30 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 19:41:25 +0000 (21:41 +0200)
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>
drivers/net/mlx5/mlx5_trigger.c

index 229b05e..8c5aa69 100644 (file)
@@ -109,6 +109,7 @@ error:
        priv_mac_addrs_disable(priv);
        priv_destroy_hash_rxqs(priv);
        priv_flow_stop(priv);
+       priv_unlock(priv);
        return -err;
 }