mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: xc_domain_restore returns 0 on success, 1 on error
Fix restore_common to handle it this way. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
317b6ccda5
commit
3ebec8fa65
1 file changed
+1
-1
@@ -260,7 +260,7 @@ int restore_common(libxl_ctx *ctx, uint32_t domid,
|
||||
state->store_port, &state->store_mfn,
|
||||
state->console_port, &state->console_mfn,
|
||||
info->hvm, info->u.hvm.pae, 0);
|
||||
if ( rc < 0 ) {
|
||||
if ( rc ) {
|
||||
XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "restoring domain");
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||