mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +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>
|
Thu Dec 18 16:13:56 CET 2008 Guido Günther <agx@sigxcpu.org>
|
||||||
|
|
||||||
Let qemu/kvm instances write a pid file
|
Let qemu/kvm instances write a pid file
|
||||||
|
@ -3222,7 +3222,8 @@ static int qemudDomainAttachDevice(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virDomainDeviceDefFree(dev);
|
if (ret < 0)
|
||||||
|
virDomainDeviceDefFree(dev);
|
||||||
if (vm)
|
if (vm)
|
||||||
virDomainObjUnlock(vm);
|
virDomainObjUnlock(vm);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user