diff options
author | smh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk> | 2005-08-14 22:09:18 +0000 |
---|---|---|
committer | smh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk> | 2005-08-14 22:09:18 +0000 |
commit | 831ad9a3a2204756e96063ebd7b5e88bd65692b6 (patch) | |
tree | c9c6c45da6b7eb90ad6181e8f92f548a3d7991fe | |
parent | 2fabf79299195e1fed5ddabdcc70761ca9edb76d (diff) | |
download | xen-831ad9a3a2204756e96063ebd7b5e88bd65692b6.tar.gz xen-831ad9a3a2204756e96063ebd7b5e88bd65692b6.tar.bz2 xen-831ad9a3a2204756e96063ebd7b5e88bd65692b6.zip |
Clean up correct number of grant references on netif destory.
Signed-off-by: Steven Hand <steven@xensource.com>
-rw-r--r-- | linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index dec8936e5a..7c78eb1ec4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -1449,10 +1449,10 @@ static int __init netif_init(void) static void netif_exit(void) { #ifdef CONFIG_XEN_NETDEV_GRANT_TX - gnttab_free_grant_references(NETIF_TX_RING_SIZE, gref_tx_head); + gnttab_free_grant_references(NETIF_TX_RING_SIZE + 1, gref_tx_head); #endif #ifdef CONFIG_XEN_NETDEV_GRANT_RX - gnttab_free_grant_references(NETIF_RX_RING_SIZE, gref_rx_head); + gnttab_free_grant_references(NETIF_RX_RING_SIZE + 1, gref_rx_head); #endif } |