From: Kostiantyn Kostiuk Date: Mon, 25 Aug 2025 14:05:48 +0000 (+0300) Subject: qga: Fix channel initialization check in run_agent_once X-Git-Tag: v10.2.0-rc1~113^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b0ba59762380fff9c91a031301f6f661abaac96;p=thirdparty%2Fqemu.git qga: Fix channel initialization check in run_agent_once Reviewed-by: Yan Vugenfirer Reviewed-by: Michal Privoznik Link: https://lore.kernel.org/qemu-devel/20250825140549.146617-2-kkostiuk@redhat.com Signed-off-by: Kostiantyn Kostiuk --- diff --git a/qga/main.c b/qga/main.c index 6c02f3ec386..a1bf8f53acb 100644 --- a/qga/main.c +++ b/qga/main.c @@ -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;