From: Ian Jackson Date: Thu, 28 Jun 2012 17:43:26 +0000 (+0100) Subject: xl: Handle return value from libxl_domain_suspend correctly X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8252 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6d4a6646752de9351f95a8f690b6bb79438a6337;p=xen.git xl: Handle return value from libxl_domain_suspend correctly libxl_domain_suspend returns a libxl error code. So it must be wrapped with MUST and not CHK_ERRNO. Signed-off-by: Ian Jackson Acked-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index bcdef00e02..1029e6c2c8 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2826,7 +2826,7 @@ static int save_domain(const char *p, const char *filename, int checkpoint, save_domain_core_writeconfig(fd, filename, config_data, config_len); - CHK_ERRNO(libxl_domain_suspend(ctx, domid, fd, 0, NULL)); + MUST(libxl_domain_suspend(ctx, domid, fd, 0, NULL)); close(fd); if (checkpoint)