commit | b9149729ebdcfce63f853aa54a404c6a8f6ebbf3 | [log] [tgz] |
---|---|---|
author | Ian Campbell <[email protected]> | Wed Feb 06 23:41:38 2013 +0000 |
committer | David S. Miller <[email protected]> | Thu Feb 07 23:29:29 2013 -0500 |
tree | a3ca13aa2b6ac2c022fae1a1680856a5261321c7 | |
parent | 4cc7c1cb7b11b6f3515bd9075527576a1eecc4aa [diff] [blame] |
netback: correct netbk_tx_err to handle wrap around. Signed-off-by: Ian Campbell <[email protected]> Acked-by: Jan Beulich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index dcb2d4d..2b9520c 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c
@@ -880,7 +880,7 @@ do { make_tx_response(vif, txp, XEN_NETIF_RSP_ERROR); - if (cons >= end) + if (cons == end) break; txp = RING_GET_REQUEST(&vif->tx, cons++); } while (1);