xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]xl: fix restore_common return value
@ 2010-06-15  1:41 Yang Hongyang
  0 siblings, 0 replies; only message in thread
From: Yang Hongyang @ 2010-06-15  1:41 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

Restore_common function should return error when failed.
But It's always return 0. The patch fix this problem.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com> 

diff -r 9f49e9794596 tools/libxl/libxl_dom.c
--- a/tools/libxl/libxl_dom.c	Fri Jun 11 15:22:12 2010 +0100
+++ b/tools/libxl/libxl_dom.c	Tue Jun 15 17:41:19 2010 +0800
@@ -196,11 +196,10 @@
                    int fd)
 {
     /* read signature */
-    xc_domain_restore(ctx->xch, fd, domid,
-                      state->store_port, &state->store_mfn,
-                      state->console_port, &state->console_mfn,
-                      info->hvm, info->u.hvm.pae, 0);
-    return 0;
+    return xc_domain_restore(ctx->xch, fd, domid,
+                             state->store_port, &state->store_mfn,
+                             state->console_port, &state->console_mfn,
+                             info->hvm, info->u.hvm.pae, 0);
 }
 
 struct suspendinfo {

-- 
Regards
Yang Hongyang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-15  1:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15  1:41 [PATCH]xl: fix restore_common return value Yang Hongyang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).