]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
netback: correct netbk_tx_err to handle wrap around.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 6 Feb 2013 23:41:38 +0000 (23:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:48:29 +0000 (10:48 -0800)
[ Upstream commit b9149729ebdcfce63f853aa54a404c6a8f6ebbf3 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/netback.c

index dcb2d4d3c3ea21af382c069e65d5af70bf0f2803..2b9520c46e97a8de263b10f602bdb8cc35af0277 100644 (file)
@@ -880,7 +880,7 @@ static void netbk_tx_err(struct xenvif *vif,
 
        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);