mlx4: fix missing unlock in case of error
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 30 Oct 2015 19:00:09 +0000 (20:00 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 30 Oct 2015 23:21:58 +0000 (00:21 +0100)
Fixes: 7fae69eeff13 ("mlx4: new poll mode driver")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c

index 8c78037..8a8a8a7 100644 (file)
@@ -3645,6 +3645,7 @@ mlx4_dev_start(struct rte_eth_dev *dev)
                        }
                }
                priv->started = 0;
+               priv_unlock(priv);
                return -ret;
        } while ((--r) && ((rxq = (*priv->rxqs)[++i]), i));
        priv_unlock(priv);