xen-netback: use correct index for invalidation in xen_netbk_tx_check_gop()
authorJan Beulich <JBeulich@suse.com>
Fri, 18 Nov 2011 05:42:05 +0000 (05:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2011 20:32:15 +0000 (15:32 -0500)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c

index 0cb594c..1ae270e 100644 (file)
@@ -1021,7 +1021,7 @@ static int xen_netbk_tx_check_gop(struct xen_netbk *netbk,
                pending_idx = *((u16 *)skb->data);
                xen_netbk_idx_release(netbk, pending_idx);
                for (j = start; j < i; j++) {
-                       pending_idx = frag_get_pending_idx(&shinfo->frags[i]);
+                       pending_idx = frag_get_pending_idx(&shinfo->frags[j]);
                        xen_netbk_idx_release(netbk, pending_idx);
                }