[xen master] libxl: fix return code in qmp_synchronous_send

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] libxl: fix return code in qmp_synchronous_send

patchbot
commit bbc721a82c9480e8083ffe315505af072b43b12f
Author:     Olaf Hering <[hidden email]>
AuthorDate: Thu May 17 16:29:57 2018 +0200
Commit:     Wei Liu <[hidden email]>
CommitDate: Tue Jun 26 12:43:10 2018 +0100

    libxl: fix return code in qmp_synchronous_send
   
    Use error code from libxl namespace, a plain -1 is not valid in this context.
   
    Signed-off-by: Olaf Hering <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 tools/libxl/libxl_qmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index be1fda18ba..0fe42813bf 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -627,7 +627,7 @@ static int qmp_synchronous_send(libxl__qmp_handler *qmp, const char *cmd,
 
     id = qmp_send(qmp, cmd, args, callback, opaque, &context);
     if (id <= 0) {
-        return -1;
+        return ERROR_FAIL;
     }
     qmp->wait_for_id = id;
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog