VirtualBox

Ignore:
Timestamp:
Jul 8, 2015 12:40:29 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101524
Message:

VBoxNetFlt/linux: register_netdevice_notifier() invokes the callback
under rtnl lock, so adjust the code accordingly (missed in r100672).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r56855 r56861  
    18861886}
    18871887
     1888/*
     1889 * Initial enumeration of netdevs.  Called with NETDEV_REGISTER by
     1890 * register_netdevice_notifier() under rtnl lock.
     1891 */
    18881892static int vboxNetFltLinuxEnumeratorCallback(struct notifier_block *self, unsigned long ulEventType, void *ptr)
    18891893{
     
    19021906     * IPv4
    19031907     */
    1904     in_dev = __in_dev_get_rcu(dev);
     1908#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14)
     1909    in_dev = __in_dev_get_rtnl(dev);
     1910#else
     1911    in_dev = __in_dev_get(dev);
     1912#endif
    19051913    if (in_dev != NULL)
    19061914    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette