xl: fix restore_common return value
PATCH 1/1 xl: fix restore_common return value
Restore_common function should return error when failed. But It's always return 0. The patch fix this problem.
Signed-off-by Yang Hongyang <[email protected]>
tools/libxl/libxl_dom.c +4 -5
@@ -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 {
Signature · 2 lines
Regards Yang Hongyang