]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.xen/782-netback-error-handling.patch
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.xen / 782-netback-error-handling.patch
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>
4 # Date 1233150129 0
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
9
10 Signed-off-by: Jan Beulich <jbeulich@novell.com>
11
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(
15 BUG();
16
17 if (op.status) {
18 + struct gnttab_unmap_grant_ref unop;
19 +
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,
24 + &unop, 1));
25 DPRINTK(" Gnttab failure mapping rx_ring_ref!\n");
26 return op.status;
27 }