From: Peter Krempa Date: Thu, 18 Jun 2015 13:29:20 +0000 (+0200) Subject: qemu: Jump to correct label in qemuDomainPinIOThread X-Git-Tag: v1.2.17-rc1~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e4c1d6fd4957033d60ce365f324d90dd878a82;p=thirdparty%2Flibvirt.git qemu: Jump to correct label in qemuDomainPinIOThread If virDomainObjGetDefs used in qemuDomainPinIOThread would fail the code would jump to the 'cleanup' label after acquiring the job, thus the VM would be locked forever. Introduced in commit cac6d639. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index eb07b7a3a4..3a70b1851e 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5790,7 +5790,7 @@ qemuDomainPinIOThread(virDomainPtr dom, goto cleanup; if (virDomainObjGetDefs(vm, flags, &def, &persistentDef) < 0) - goto cleanup; + goto endjob; if (!(pcpumap = virBitmapNewData(cpumap, maplen))) goto endjob;