From 2048aeec6bf171e23ddc94fb67e2abb1e65e8c92 Mon Sep 17 00:00:00 2001 From: Ayush Ruia Date: Mon, 6 Oct 2014 03:12:26 -0500 Subject: [PATCH] libxl.c:return val of libxl_wait_for_memory_target Fixed the return value of the function libxl_wait_for_memory_target. It was always returning 0 even inthe case of an error. Signed-off-by: Ayush Ruia Acked-by: Wei Liu --- tools/libxl/libxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 3f0a7ffba2..9c72df27d9 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -4764,7 +4764,7 @@ int libxl_wait_for_memory_target(libxl_ctx *ctx, uint32_t domid, int wait_secs) rc = ERROR_FAIL; out: - return 0; + return rc; } int libxl_get_physinfo(libxl_ctx *ctx, libxl_physinfo *physinfo) -- 2.30.2