direct-io.hg

changeset 1860:16fdd22af874

bitkeeper revision 1.1108.9.1 (40ff33f7mGpVA0FaO9NtlXnmThKnuA)

network.c:
Small bugfix.
author kaf24@scramble.cl.cam.ac.uk
date Thu Jul 22 03:26:47 2004 +0000 (2004-07-22)
parents 8f45c4cafc5c
children 24ecbb3a55bb
files linux-2.6.7-xen-sparse/drivers/xen/net/network.c
line diff
     1.1 --- a/linux-2.6.7-xen-sparse/drivers/xen/net/network.c	Wed Jul 21 10:08:28 2004 +0000
     1.2 +++ b/linux-2.6.7-xen-sparse/drivers/xen/net/network.c	Thu Jul 22 03:26:47 2004 +0000
     1.3 @@ -275,6 +275,9 @@ static void network_alloc_rx_buffers(str
     1.4      }
     1.5      while ( (++i - np->rx_resp_cons) != NETIF_RX_RING_SIZE );
     1.6  
     1.7 +    if ( unlikely(nr_pfns == 0) )
     1.8 +        return;
     1.9 +
    1.10      /*
    1.11       * We may have allocated buffers which have entries outstanding in the page
    1.12       * update queue -- make sure we flush those first!