提交 91c9e4d9 编写于 作者: L Luyao Huang 提交者: Martin Kletzander

qemu: End job even if exiting monitor after OpenGraphics(FD) fails

Signed-off-by: NLuyao Huang <lhuang@redhat.com>
上级 224456fc
......@@ -17265,10 +17265,8 @@ qemuDomainOpenGraphics(virDomainPtr dom,
qemuDomainObjEnterMonitor(driver, vm);
ret = qemuMonitorOpenGraphics(priv->mon, protocol, fd, "graphicsfd",
(flags & VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH) != 0);
if (qemuDomainObjExitMonitor(driver, vm) < 0) {
if (qemuDomainObjExitMonitor(driver, vm) < 0)
ret = -1;
goto cleanup;
}
qemuDomainObjEndJob(driver, vm);
cleanup:
......@@ -17337,10 +17335,8 @@ qemuDomainOpenGraphicsFD(virDomainPtr dom,
qemuDomainObjEnterMonitor(driver, vm);
ret = qemuMonitorOpenGraphics(priv->mon, protocol, pair[1], "graphicsfd",
(flags & VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH));
if (qemuDomainObjExitMonitor(driver, vm) < 0) {
if (qemuDomainObjExitMonitor(driver, vm) < 0)
ret = -1;
goto cleanup;
}
qemuDomainObjEndJob(driver, vm);
if (ret < 0)
goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册