aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostiantyn Kostiuk <kkostiuk@redhat.com>2025-08-25 17:05:48 +0300
committerKostiantyn Kostiuk <kkostiuk@redhat.com>2025-09-01 14:02:18 +0300
commit3b0ba59762380fff9c91a031301f6f661abaac96 (patch)
tree67267ec72e457a53bafc75b2017ec1741fa71bb9
parented42682a66ef9f5e892abb7bcc3f211e1180f075 (diff)
downloadqemu-3b0ba59762380fff9c91a031301f6f661abaac96.zip
qemu-3b0ba59762380fff9c91a031301f6f661abaac96.tar.gz
qemu-3b0ba59762380fff9c91a031301f6f661abaac96.tar.bz2
qga: Fix channel initialization check in run_agent_once
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>
-rw-r--r--qga/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/main.c b/qga/main.c
index 6c02f3e..a1bf8f5 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;