mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
fix device hotplug
This commit is contained in:
parent
830ba76c3e
commit
ecd25f5262
@ -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
|
||||
|
@ -3222,6 +3222,7 @@ static int qemudDomainAttachDevice(virDomainPtr dom,
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (ret < 0)
|
||||
virDomainDeviceDefFree(dev);
|
||||
if (vm)
|
||||
virDomainObjUnlock(vm);
|
||||
|
Loading…
Reference in New Issue
Block a user