ia64/linux-2.6.18-xen.hg

changeset 566:8331484a36f5

netfront: fix updating of req_prod_pvt in the receive ring for the flipping case

From: Pat Campbell <plc@novell.com>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 05 10:37:58 2008 +0100 (2008-06-05)
parents 105239038a17
children 5c92cb1a3201
files drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/drivers/xen/netfront/netfront.c	Mon Jun 02 10:01:34 2008 +0100
     1.2 +++ b/drivers/xen/netfront/netfront.c	Thu Jun 05 10:37:58 2008 +0100
     1.3 @@ -851,8 +851,8 @@ no_skb:
     1.4  			/* Check return status of HYPERVISOR_memory_op(). */
     1.5  			if (unlikely(np->rx_mcl[i].result != i))
     1.6  				panic("Unable to reduce memory reservation\n");
     1.7 -			while (i--)
     1.8 -				BUG_ON(np->rx_mcl[i].result);
     1.9 +			while (nr_flips--)
    1.10 +				BUG_ON(np->rx_mcl[nr_flips].result);
    1.11  		} else {
    1.12  			if (HYPERVISOR_memory_op(XENMEM_decrease_reservation,
    1.13  						 &reservation) != i)