qemu: Exit job on error path of qemuDomainSetVcpusFlags()

Commit e105dc9814 moved some code but
didn't adjust the jump labels so that the job would be terminated.
This commit is contained in:
Peter Krempa 2015-02-18 18:05:21 +01:00
parent 5c756e580f
commit 0df2f0404f
1 changed files with 3 additions and 3 deletions

View File

@ -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)