summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2015-04-29 15:59:35 -0700
committerDavid S. Miller <davem@davemloft.net>2015-04-30 16:25:14 -0400
commitf94813f3c1d02090cc02dcfcbed339897830acb8 (patch)
tree1b2af169db32137bc6c08612fffd818f9a936fcb
parent7f0b8a56c978b0a3315ac84c6cbb065413afb8e9 (diff)
downloadblackbird-op-linux-f94813f3c1d02090cc02dcfcbed339897830acb8.tar.gz
blackbird-op-linux-f94813f3c1d02090cc02dcfcbed339897830acb8.zip
mlx4_en: Use correct loop cursor in error path.
Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Fixes: 9e311e7 ("net/mlx4_en: Use affinity hint") Acked-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index 0f1afc085d58..bf173d7b873b 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -1721,7 +1721,7 @@ mac_err:
cq_err:
while (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++)
mlx4_en_deactivate_rx_ring(priv, priv->rx_ring[i]);
OpenPOWER on IntegriCloud