Skip to content

Commit b914972

Browse files
Ian Campbelldavem330
authored andcommitted
netback: correct netbk_tx_err to handle wrap around.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4cc7c1c commit b914972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/xen-netback/netback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ static void netbk_tx_err(struct xenvif *vif,
880880

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

0 commit comments

Comments
 (0)