[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] netfront: fix updating of req_prod_pvt in the receive ring for the flipping case



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1212658678 -3600
# Node ID 8331484a36f512e5960cfe3d0e5c54a1a3bc9f02
# Parent  105239038a179503689da78d63103ae6358d8e1f
netfront: fix updating of req_prod_pvt in the receive ring for the flipping case

From: Pat Campbell <plc@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/netfront/netfront.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 105239038a17 -r 8331484a36f5 drivers/xen/netfront/netfront.c
--- a/drivers/xen/netfront/netfront.c   Mon Jun 02 10:01:34 2008 +0100
+++ b/drivers/xen/netfront/netfront.c   Thu Jun 05 10:37:58 2008 +0100
@@ -851,8 +851,8 @@ no_skb:
                        /* Check return status of HYPERVISOR_memory_op(). */
                        if (unlikely(np->rx_mcl[i].result != i))
                                panic("Unable to reduce memory reservation\n");
-                       while (i--)
-                               BUG_ON(np->rx_mcl[i].result);
+                       while (nr_flips--)
+                               BUG_ON(np->rx_mcl[nr_flips].result);
                } else {
                        if (HYPERVISOR_memory_op(XENMEM_decrease_reservation,
                                                 &reservation) != i)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.