Files
linux/drivers
Francesco Ruggeri e96c37f185 macvtap: check minor when unregistering
macvtap_device_event(NETDEV_UNREGISTER) should check vlan->minor to
determine if it is being invoked in the context of a macvtap_newlink
that failed, for example in this code sequence:

macvtap_newlink
  macvlan_common_newlink
    register_netdevice
      call_netdevice_notifiers(NETDEV_REGISTER, dev)
        macvtap_device_event(NETDEV_REGISTER)
          <fail here, vlan->minor = 0>
      rollback_registered(dev);
        rollback_registered_many
          call_netdevice_notifiers(NETDEV_UNREGISTER, dev);
            macvtap_device_event(NETDEV_UNREGISTER)
              <nothing to clean up here>

Signed-off-by: Francesco Ruggeri <fruggeri@arista.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-26 15:17:45 -04:00
..
2016-04-02 01:17:36 +02:00
2016-03-23 17:52:10 +02:00
2016-04-21 20:57:46 +02:00
2016-04-16 22:52:03 +05:30
2016-04-07 22:11:08 +02:00
2016-04-14 16:54:00 +02:00
2016-04-04 11:18:00 +01:00