[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] fix device hotplug
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Guido Günther <agx sigxcpu org>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] fix device hotplug
- Date: Thu, 18 Dec 2008 10:51:04 +0000
On Thu, Dec 18, 2008 at 10:26:07AM +0100, Guido G?nther wrote:
> Hi,
> due to some restructuring we free the device structure so devices are
> plugged correctly but "dumpxml" fails since the dev structure is already
This is a rather over complicated way of fixing it. Why not just
do:
< cleanup:
< virDomainDeviceDefFree(dev)
-----------------
> cleanup:
> if (ret < 0)
> virDomainDeviceDefFree(dev);
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]