[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 14 of 22] xenpaging: catch xc_mem_paging_resume errors
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1307695639 -7200 # Node ID c67d7c0936969d076e30700c9a8f57080238be4e # Parent f26f07e19318b112b58ee370c16bee8bf5605d3f xenpaging: catch xc_mem_paging_resume errors In the unlikely event that xc_mem_paging_resume() fails, do not overwrite the error with the return value from xc_evtchn_notify() Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r f26f07e19318 -r c67d7c093696 tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:18 2011 +0200 +++ b/tools/xenpaging/xenpaging.c Fri Jun 10 10:47:19 2011 +0200 @@ -442,8 +442,9 @@ static int xenpaging_resume_page(xenpagi /* Tell Xen page is ready */ ret = xc_mem_paging_resume(paging->xc_handle, paging->mem_event.domain_id, rsp->gfn); - ret = xc_evtchn_notify(paging->mem_event.xce_handle, - paging->mem_event.port); + if ( ret == 0 ) + ret = xc_evtchn_notify(paging->mem_event.xce_handle, + paging->mem_event.port); out: return ret; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |