From: Adrien Mazarguil Date: Fri, 30 Oct 2015 19:00:09 +0000 (+0100) Subject: mlx4: fix missing unlock in case of error X-Git-Tag: spdx-start~8256 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2f9f46587ab2ad9a77fe614698b34d209b00eb2c;p=dpdk.git mlx4: fix missing unlock in case of error Fixes: 7fae69eeff13 ("mlx4: new poll mode driver") Signed-off-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index 8c7803739b..8a8a8a7630 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -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);