fbe740
From 24405105c86a955a028a915153d1c1dfe450f237 Mon Sep 17 00:00:00 2001
fbe740
Message-Id: <24405105c86a955a028a915153d1c1dfe450f237@dist-git>
fbe740
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
fbe740
Date: Mon, 20 Jan 2020 09:31:21 +0100
fbe740
Subject: [PATCH] qemu: end the agent job in qemuDomainSetTimeAgent
fbe740
MIME-Version: 1.0
fbe740
Content-Type: text/plain; charset=UTF-8
fbe740
Content-Transfer-Encoding: 8bit
fbe740
fbe740
This function grabs an agent job but ends a monitor job.
fbe740
End the agent job instead.
fbe740
fbe740
https://bugzilla.redhat.com/show_bug.cgi?id=1792723
fbe740
fbe740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
fbe740
Reported-by: Dan Zheng <dzheng@redhat.com>
fbe740
Fixes: e005c95f56fee9ed780be7f8db103d690bd34cbd
fbe740
(cherry picked from commit d61f95cf6a6fbd564e104c168d325581acd9cd8d)
fbe740
Signed-off-by: Ján Tomko <jtomko@redhat.com>
fbe740
Message-Id: <d00e462cf0f84d7d2d105f30f0ec8edf49786403.1579509070.git.jtomko@redhat.com>
fbe740
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
fbe740
---
fbe740
 src/qemu/qemu_driver.c | 2 +-
fbe740
 1 file changed, 1 insertion(+), 1 deletion(-)
fbe740
fbe740
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
fbe740
index 217d873671..6163b13e91 100644
fbe740
--- a/src/qemu/qemu_driver.c
fbe740
+++ b/src/qemu/qemu_driver.c
fbe740
@@ -20373,7 +20373,7 @@ qemuDomainSetTimeAgent(virQEMUDriverPtr driver,
fbe740
     qemuDomainObjExitAgent(vm, agent);
fbe740
 
fbe740
  endjob:
fbe740
-    qemuDomainObjEndJob(driver, vm);
fbe740
+    qemuDomainObjEndAgentJob(vm);
fbe740
     return ret;
fbe740
 }
fbe740
 
fbe740
-- 
fbe740
2.25.0
fbe740