Re: PATCH: Support input devices in XML format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 18, 2007 at 07:20:36AM -0400, Daniel Veillard wrote:
> On Tue, Jul 17, 2007 at 07:51:13PM +0100, Daniel P. Berrange wrote:
> > On Tue, Jul 17, 2007 at 02:03:12AM +0100, Daniel P. Berrange wrote:
> > > This patch is the first step towards supporting USB devices in libvirt
> > > XML format. As per the original thread some months back[1], I'm the
> > > grouping is being done based on device classes, rather than bus types.
> > > So this first patch is actually introducing the concept of 'input'
> > > devices. This is best illustrated by examples
> > 
> > My first patch forgot to actually pass the neccessary -usbdevice arguments
> > to QEMU ! Attaching a revised version which fixes this.
> > 
> > I've also now got test code for validating QEMU parsing. I'm not attaching
> > that since its basically just huge quantities of sample XML data and files
> > with corresponding argv for QEMU, so not really interesting to review.
> 
>   Looks great to me !
> 
> > @@ -1091,7 +1159,6 @@ static struct qemud_vm_def *qemudParseXM
> >              } else if (!strcmp((char *)prop, "net")) {
> >                  def->os.bootDevs[def->os.nBootDevs++] = QEMUD_BOOT_NET;
> >              } else {
> > -                xmlFree(prop);
> >                  goto error;
> >              }
> >              xmlFree(prop);
> 
>   hoho :-)

Yep the test suite found this double free - the 'error:' label already free's
the prop if it is non-NULL.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]