]> xenbits.xensource.com Git - xen.git/commitdiff
xl: fix restore_common return value
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jun 2010 10:38:41 +0000 (11:38 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Jun 2010 10:38:41 +0000 (11:38 +0100)
restore_common function should return error when failed.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/libxl_dom.c

index a280710a2409640be7fb907949b08478ea8008b7..c4892971734a8f7636870ce2487395057bd0ed82 100644 (file)
@@ -196,11 +196,10 @@ int restore_common(struct libxl_ctx *ctx, uint32_t domid,
                    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 {