1 From: http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/51decc39e5e7
2 # HG changeset 782 patch
3 # User Keir Fraser <keir.fraser@citrix.com>
5 # Node ID 51decc39e5e73ea201d0b96108f8a893106a6864
6 # Parent c9783c08495c56337dec371582b3f948e3b5ed8d
7 Subject: linux/netback: unmap tx ring gref when mapping of rx ring gref failed
8 Patch-mainline: obsolete
10 Signed-off-by: Jan Beulich <jbeulich@novell.com>
12 --- head-2009-02-02.orig/drivers/xen/netback/interface.c 2009-02-02 09:28:02.000000000 +0100
13 +++ head-2009-02-02/drivers/xen/netback/interface.c 2009-02-02 09:40:43.000000000 +0100
14 @@ -219,6 +219,13 @@ static int map_frontend_pages(
18 + struct gnttab_unmap_grant_ref unop;
20 + gnttab_set_unmap_op(&unop,
21 + (unsigned long)netif->tx_comms_area->addr,
22 + GNTMAP_host_map, netif->tx_shmem_handle);
23 + VOID(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref,
25 DPRINTK(" Gnttab failure mapping rx_ring_ref!\n");