[PATCH] qemu: reset await_event in all error paths in qemuAgentCommand

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Fri Mar 20 07:16:23 UTC 2020


A fixup to patch [1]. We need to reset await_event in all
error paths.

[1] 52532073d : qemu: remove redundant needReply argument of qemuAgentCommand

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
---
 src/qemu/qemu_agent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index 9ea2c59..6ff5b11 100644
--- a/src/qemu/qemu_agent.c
+++ b/src/qemu/qemu_agent.c
@@ -1113,7 +1113,7 @@ qemuAgentCommand(qemuAgentPtr agent,
     }
 
     if (qemuAgentGuestSync(agent) < 0)
-        return -1;
+        goto cleanup;
 
     if (!(cmdstr = virJSONValueToString(cmd, false)))
         goto cleanup;
-- 
1.8.3.1





More information about the libvir-list mailing list