Commit f94813f3 authored by Benjamin Poirier's avatar Benjamin Poirier Committed by David S. Miller

mlx4_en: Use correct loop cursor in error path.

Signed-off-by: default avatarBenjamin Poirier <>
Fixes: 9e311e77 ("net/mlx4_en: Use affinity hint")
Acked-by: default avatarAmir Vadai <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7f0b8a56
...@@ -1721,7 +1721,7 @@ int mlx4_en_start_port(struct net_device *dev) ...@@ -1721,7 +1721,7 @@ int mlx4_en_start_port(struct net_device *dev)
cq_err: cq_err:
while (rx_index--) { while (rx_index--) {
mlx4_en_deactivate_cq(priv, priv->rx_cq[rx_index]); mlx4_en_deactivate_cq(priv, priv->rx_cq[rx_index]);
mlx4_en_free_affinity_hint(priv, i); mlx4_en_free_affinity_hint(priv, rx_index);
} }
for (i = 0; i < priv->rx_ring_num; i++) for (i = 0; i < priv->rx_ring_num; i++)
mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]); mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment