]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Jump to correct label in qemuDomainPinIOThread
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jun 2015 13:29:20 +0000 (15:29 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 18 Jun 2015 13:29:20 +0000 (15:29 +0200)
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.

src/qemu/qemu_driver.c

index eb07b7a3a4199ea744eece173b2ffaa9d5f71da2..3a70b1851eebfa00f94e21d5b9daf724cd583b16 100644 (file)
@@ -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;