All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux-2.6.18/netback: use correct index for invalidation in netbk_tx_check_mop()
@ 2011-11-18 13:15 Jan Beulich
  2011-11-18 13:25 ` Jan Beulich
  2011-11-18 16:25 ` Laszlo Ersek
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Beulich @ 2011-11-18 13:15 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/drivers/xen/netback/netback.c
+++ b/drivers/xen/netback/netback.c
@@ -1155,7 +1155,7 @@ static int netbk_tx_check_mop(struct sk_
 		pending_idx = *((u16 *)skb->data);
 		netif_idx_release(pending_idx);
 		for (j = start; j < i; j++) {
-			pending_idx = (unsigned long)shinfo->frags[i].page;
+			pending_idx = (unsigned long)shinfo->frags[j].page;
 			netif_idx_release(pending_idx);
 		}
 




[-- Attachment #2: xen-netback-check_mop-error.patch --]
[-- Type: text/plain, Size: 528 bytes --]

netback: use correct index for invalidation in netbk_tx_check_mop()

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/drivers/xen/netback/netback.c
+++ b/drivers/xen/netback/netback.c
@@ -1155,7 +1155,7 @@ static int netbk_tx_check_mop(struct sk_
 		pending_idx = *((u16 *)skb->data);
 		netif_idx_release(pending_idx);
 		for (j = start; j < i; j++) {
-			pending_idx = (unsigned long)shinfo->frags[i].page;
+			pending_idx = (unsigned long)shinfo->frags[j].page;
 			netif_idx_release(pending_idx);
 		}
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-18 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-18 13:15 [PATCH] linux-2.6.18/netback: use correct index for invalidation in netbk_tx_check_mop() Jan Beulich
2011-11-18 13:25 ` Jan Beulich
2011-11-18 14:01   ` Ian Campbell
2011-11-18 16:25 ` Laszlo Ersek
2011-11-18 16:46   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.