Skip to contentSkip to conversation

libxl.c:return val of libxl_wait_for_memory_target

PATCH Applied Ayush Ruia 3 participants 3 messages Oct 6, 2014

lore
Share & tools
lore

Ayush Ruia

author
#0 lore raw

PATCH 1/1 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.

---
 tools/libxl/libxl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl.c +1 -1
index 77672d0..59e5932 100644
@@ -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)
Signature · 1 line
1.9.1