fix device hotplug

This commit is contained in:
Guido Günther 2008-12-18 16:49:49 +00:00
parent 830ba76c3e
commit ecd25f5262
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Dec 18 17:46:06 CET 2008 Guido Günther <agx@sigxcpu.org>
* src/qemu_driver.c (qemudDomainAttachDevice): only
free dev on failure
Thu Dec 18 16:13:56 CET 2008 Guido Günther <agx@sigxcpu.org>
Let qemu/kvm instances write a pid file

View File

@ -3222,7 +3222,8 @@ static int qemudDomainAttachDevice(virDomainPtr dom,
}
cleanup:
virDomainDeviceDefFree(dev);
if (ret < 0)
virDomainDeviceDefFree(dev);
if (vm)
virDomainObjUnlock(vm);
return ret;