diff options
author | Benjamin Poirier <bpoirier@suse.de> | 2015-04-29 22:59:35 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-30 20:25:14 (GMT) |
commit | f94813f3c1d02090cc02dcfcbed339897830acb8 (patch) | |
tree | 1b2af169db32137bc6c08612fffd818f9a936fcb /drivers/net/ethernet | |
parent | 7f0b8a56c978b0a3315ac84c6cbb065413afb8e9 (diff) | |
download | linux-f94813f3c1d02090cc02dcfcbed339897830acb8.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 2 |
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 0f1afc0..bf173d7 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]); |