[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xl: fix restore_common return value
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1276598321 -3600 # Node ID 094b826a2b8e2c17fe7004923352d459e0c23f13 # Parent a5b45fb404dd77891312ebbc05749d710871db75 xl: fix restore_common return value restore_common function should return error when failed. Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx> --- tools/libxl/libxl_dom.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff -r a5b45fb404dd -r 094b826a2b8e tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Tue Jun 15 11:37:59 2010 +0100 +++ b/tools/libxl/libxl_dom.c Tue Jun 15 11:38:41 2010 +0100 @@ -196,11 +196,10 @@ int restore_common(struct libxl_ctx *ctx 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 { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |