]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qga: Fix channel initialization check in run_agent_once
authorKostiantyn Kostiuk <kkostiuk@redhat.com>
Mon, 25 Aug 2025 14:05:48 +0000 (17:05 +0300)
committerKostiantyn Kostiuk <kkostiuk@redhat.com>
Mon, 1 Sep 2025 11:02:18 +0000 (14:02 +0300)
Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250825140549.146617-2-kkostiuk@redhat.com
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
qga/main.c

index 6c02f3ec386b3e36b13ab2158c64b4b80aa8a2e3..a1bf8f53acba33393689416200ddd66dd0089585 100644 (file)
@@ -1563,7 +1563,7 @@ static void cleanup_agent(GAState *s)
 static int run_agent_once(GAState *s)
 {
     if (!s->channel &&
-        channel_init(s, s->config->method, s->config->channel_path,
+        !channel_init(s, s->config->method, s->config->channel_path,
                      s->socket_activation ? FIRST_SOCKET_ACTIVATION_FD : -1)) {
         g_critical("failed to initialize guest agent channel");
         return EXIT_FAILURE;