mlx4: fix missing unlock in case of error

Fixes: 7fae69eeff13 ("mlx4: new poll mode driver")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
This commit is contained in:
Adrien Mazarguil 2015-10-30 20:00:09 +01:00 committed by Thomas Monjalon
parent 9df03dd7d5
commit 2f9f46587a

View 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);