diff options
| author | Kostiantyn Kostiuk <kkostiuk@redhat.com> | 2025-08-25 17:05:48 +0300 |
|---|---|---|
| committer | Kostiantyn Kostiuk <kkostiuk@redhat.com> | 2025-09-01 14:02:18 +0300 |
| commit | 3b0ba59762380fff9c91a031301f6f661abaac96 (patch) | |
| tree | 67267ec72e457a53bafc75b2017ec1741fa71bb9 /qga/main.c | |
| parent | ed42682a66ef9f5e892abb7bcc3f211e1180f075 (diff) | |
| download | focaccia-qemu-3b0ba59762380fff9c91a031301f6f661abaac96.tar.gz focaccia-qemu-3b0ba59762380fff9c91a031301f6f661abaac96.zip | |
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>
Diffstat (limited to 'qga/main.c')
| -rw-r--r-- | qga/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/main.c b/qga/main.c index 6c02f3ec38..a1bf8f53ac 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; |