From: Jan Beulich Date: Fri, 18 Nov 2011 05:42:05 +0000 (+0000) Subject: xen-netback: use correct index for invalidation in xen_netbk_tx_check_gop() X-Git-Tag: MMI-PSA29.97-13-9~17939^2~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ccb3ea72097ee0c8ea1f200a2ade101caf08aa4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git xen-netback: use correct index for invalidation in xen_netbk_tx_check_gop() Signed-off-by: Jan Beulich Signed-off-by: Ian Campbell Cc: stable@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 0cb594c86090..1ae270eed51a 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c @@ -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); }