]> git.ipfire.org Git - people/ms/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:47:45 +0000 (10:47 -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 40e8a33c28cd3d3858d4e2b9b13ef94eb68bd9fb..9068d32d2d5ce2db4f0d97f11af72dc406a4a87d 100644 (file)
@@ -839,7 +839,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);