libvirt/src/uml
Laine Stump b3bd5d6c5a network: get vlan info for Open vSwitch interfaces from proper source
This bug was revealed by the crash described in

  https://bugzilla.redhat.com/show_bug.cgi?id=852383

The vlan info pointer sent to virNetDevOpenvswitchAddPort should never
be non-NULL unless there is at least one tag. The factthat such a vlan
info pointer was receveid pointed out that a caller was passing the
wrong pointer. Instead of sending &net->vlan, the result of
virDomainNetGetActualVlan(net) should be sent - that function will
look for vlan info in net->data.network.actual->vlan, and in cany case
return NULL instead of a pointer if the vlan info it finds has no
tags.

Aside from causing the crash, sending a hardcoded &net->vlan has the
effect of ignoring vlan info from a <network> or <portgroup> config.
2012-08-30 18:05:18 +08:00
..
uml_conf.c network: get vlan info for Open vSwitch interfaces from proper source 2012-08-30 18:05:18 +08:00
uml_conf.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
uml_driver.c Destroy virdomainlist.[ch] 2012-08-14 17:27:49 +08:00
uml_driver.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00