diff --git a/linux-2.6.7-xen-sparse/drivers/xen/net/network.c b/linux-2.6.7-xen-sparse/drivers/xen/net/network.c index 51646e9c8f..9381595a2d 100644 --- a/linux-2.6.7-xen-sparse/drivers/xen/net/network.c +++ b/linux-2.6.7-xen-sparse/drivers/xen/net/network.c @@ -275,6 +275,9 @@ static void network_alloc_rx_buffers(struct net_device *dev) } while ( (++i - np->rx_resp_cons) != NETIF_RX_RING_SIZE ); + if ( unlikely(nr_pfns == 0) ) + return; + /* * We may have allocated buffers which have entries outstanding in the page * update queue -- make sure we flush those first!