mlx4_en: Fix cleanup flow on cq activation
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Sun, 26 Apr 2009 20:41:34 +0000 (20:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2009 09:31:31 +0000 (02:31 -0700)
In case of mlx4_en_activate_cq() failure, the cleanup
code would go to rx_err and try to disable unactivated rings.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_netdev.c

index 438678ab2a1064bd01e50600ddb6247b04310ce7..7bcc49de163787a5bc1c0f5015d711a40700d80f 100644 (file)
@@ -583,7 +583,7 @@ int mlx4_en_start_port(struct net_device *dev)
                err = mlx4_en_activate_cq(priv, cq);
                if (err) {
                        mlx4_err(mdev, "Failed activating Rx CQ\n");
-                       goto rx_err;
+                       goto cq_err;
                }
                for (j = 0; j < cq->size; j++)
                        cq->buf[j].owner_sr_opcode = MLX4_CQE_OWNER_MASK;