direct-io.hg

changeset 6158:3076b3cc3048

Clean up correct number of grant references on netif destory.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Sun Aug 14 22:09:18 2005 +0000 (2005-08-14)
parents 22ce5159334e
children 879ff416adcc
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c tools/examples/Makefile
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Sun Aug 14 21:48:37 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Sun Aug 14 22:09:18 2005 +0000
     1.3 @@ -1449,10 +1449,10 @@ static int __init netif_init(void)
     1.4  static void netif_exit(void)
     1.5  {
     1.6  #ifdef CONFIG_XEN_NETDEV_GRANT_TX
     1.7 -    gnttab_free_grant_references(NETIF_TX_RING_SIZE, gref_tx_head);
     1.8 +    gnttab_free_grant_references(NETIF_TX_RING_SIZE + 1, gref_tx_head);
     1.9  #endif
    1.10  #ifdef CONFIG_XEN_NETDEV_GRANT_RX
    1.11 -    gnttab_free_grant_references(NETIF_RX_RING_SIZE, gref_rx_head);
    1.12 +    gnttab_free_grant_references(NETIF_RX_RING_SIZE + 1, gref_rx_head);
    1.13  #endif
    1.14  }
    1.15