aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2013-02-06 18:41:38 -0500
committerDavid S. Miller <davem@davemloft.net>2013-02-07 23:29:29 -0500
commitb9149729ebdcfce63f853aa54a404c6a8f6ebbf3 (patch)
treea3ca13aa2b6ac2c022fae1a1680856a5261321c7 /drivers
parent4cc7c1cb7b11b6f3515bd9075527576a1eecc4aa (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/xen-netback/netback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c
index dcb2d4d3c3ea..2b9520c46e97 100644
--- a/drivers/net/xen-netback/netback.c
+++ b/drivers/net/xen-netback/netback.c
@@ -880,7 +880,7 @@ static void netbk_tx_err(struct xenvif *vif,
880 880
881 do { 881 do {
882 make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR); 882 make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR);
883 if (cons >= end) 883 if (cons == end)
884 break; 884 break;
885 txp = RING_GET_REQUEST(&vif->tx, cons++); 885 txp = RING_GET_REQUEST(&vif->tx, cons++);
886 } while (1); 886 } while (1);