mlx4_en: Start port error flow bug fix
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Wed, 5 Nov 2008 14:53:50 +0000 (16:53 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 7 Nov 2008 08:33:43 +0000 (03:33 -0500)
Tried to deactivate rx ring that wasn't activated,
used wrong index.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/mlx4/en_netdev.c

index a339afb..a3f7324 100644 (file)
@@ -706,7 +706,7 @@ tx_err:
        mlx4_en_release_rss_steer(priv);
 rx_err:
        for (i = 0; i < priv->rx_ring_num; i++)
-               mlx4_en_deactivate_rx_ring(priv, &priv->rx_ring[rx_index]);
+               mlx4_en_deactivate_rx_ring(priv, &priv->rx_ring[i]);
 cq_err:
        while (rx_index--)
                mlx4_en_deactivate_cq(priv, &priv->rx_cq[rx_index]);