Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4233304 authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller
Browse files

mlx4_en: Fix cleanup flow on cq activation



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: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent adc667e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;