[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [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 <ayushruia@xxxxxxxxx>
---
 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 77672d0..59e5932 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -4700,7 +4700,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)
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.