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

Commit b9149729 authored by Ian Campbell's avatar Ian Campbell Committed by David S. Miller
Browse files

netback: correct netbk_tx_err to handle wrap around.

parent 4cc7c1cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -880,7 +880,7 @@ static void netbk_tx_err(struct xenvif *vif,


	do {
	do {
		make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR);
		make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR);
		if (cons >= end)
		if (cons == end)
			break;
			break;
		txp = RING_GET_REQUEST(&vif->tx, cons++);
		txp = RING_GET_REQUEST(&vif->tx, cons++);
	} while (1);
	} while (1);