Re: [PATCH] Remove macvtap dependancy on domain configuration

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

 



On Wed, Jun 22, 2011 at 10:27:51AM -0600, Eric Blake wrote:
> On 06/22/2011 09:45 AM, Daniel P. Berrange wrote:
> 
> In the subject:
> 
> s/dependancy/dependency/
> 
> > Files under src/util must not depend on src/conf
> > Solve the macvtap problem by moving the definition
> > of macvtap modes from domain_conf.h into macvtap.h
> > 
> > * src/util/macvtap.c, src/util/macvtap.h: Add enum
> >   for macvtap modes
> > * src/conf/domain_conf.c, src/conf/domain_conf.h: Remove
> >   enum for macvtap modes
> > ---
> 
> > @@ -6737,12 +6731,13 @@ static virDomainObjPtr virDomainObjParseXML(virCapsPtr caps,
> >          char *str = virXMLPropString(nodes[i], "flag");
> >          if (str) {
> >              int flag = virDomainTaintTypeFromString(str);
> > -            VIR_FREE(str);
> >              if (flag < 0) {
> >                  virDomainReportError(VIR_ERR_INTERNAL_ERROR,
> >                                       _("Unknown taint flag %s"), str);
> > +                VIR_FREE(str);
> 
> This use-after-free bug fix is worth an independent fix, or at the very
> minimum worth a mention in your commit message.

Yes, that was a mistake - it should have been a separate patch

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]