提交 0df2f040 编写于 作者: P Peter Krempa

qemu: Exit job on error path of qemuDomainSetVcpusFlags()

Commit e105dc98 moved some code but
didn't adjust the jump labels so that the job would be terminated.
上级 5c756e58
......@@ -4716,13 +4716,13 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
if (flags & VIR_DOMAIN_AFFECT_LIVE && !(flags & VIR_DOMAIN_VCPU_GUEST)) {
if (virCgroupNewEmulator(priv->cgroup, false, &cgroup_temp) < 0)
goto cleanup;
goto endjob;
if (!(all_nodes = virNumaGetHostNodeset()))
goto cleanup;
goto endjob;
if (!(all_nodes_str = virBitmapFormat(all_nodes)))
goto cleanup;
goto endjob;
if (virCgroupGetCpusetMems(cgroup_temp, &mem_mask) < 0 ||
virCgroupSetCpusetMems(cgroup_temp, all_nodes_str) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册