|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] linux/netback: unmap tx ring gref whe
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233150129 0
# Node ID 51decc39e5e73ea201d0b96108f8a893106a6864
# Parent c9783c08495c56337dec371582b3f948e3b5ed8d
linux/netback: unmap tx ring gref when mapping of rx ring gref failed
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
drivers/xen/netback/interface.c | 7 +++++++
1 files changed, 7 insertions(+)
diff -r c9783c08495c -r 51decc39e5e7 drivers/xen/netback/interface.c
--- a/drivers/xen/netback/interface.c Wed Jan 28 13:41:33 2009 +0000
+++ b/drivers/xen/netback/interface.c Wed Jan 28 13:42:09 2009 +0000
@@ -219,6 +219,13 @@ static int map_frontend_pages(
BUG();
if (op.status) {
+ struct gnttab_unmap_grant_ref unop;
+
+ gnttab_set_unmap_op(&unop,
+ (unsigned long)netif->tx_comms_area->addr,
+ GNTMAP_host_map, netif->tx_shmem_handle);
+ VOID(HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref,
+ &unop, 1));
DPRINTK(" Gnttab failure mapping rx_ring_ref!\n");
return op.status;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] linux/netback: unmap tx ring gref when mapping of rx ring gref failed,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|