VirtualBox

Ignore:
Timestamp:
Jul 19, 2011 8:50:19 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72997
Message:

netflt: fix for regression introduced in r72926

File:
1 edited

Legend:

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

    r38052 r38054  
    963963        return;
    964964    pOverride->pOrgOps              = pDev->OVR_OPS;
     965    /* We only need to save ethtool_ops structure if it is present (#5712) */
     966    if (VALID_PTR(pDev->OVR_OPS))
     967        pOverride->Ops              = *pDev->OVR_OPS;
    965968# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
    966     /**
    967      * There is no need to save ethtool_ops structure since we only modify
    968      * the pointer itself and the structure is optional (#5712).
    969      */
    970969    pOverride->pfnStartXmit         = pDev->hard_start_xmit;
    971970# else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
    972     pOverride->Ops                  = *pDev->OVR_OPS;
    973971    pOverride->Ops.ndo_start_xmit   = vboxNetFltLinuxStartXmitFilter;
    974972# endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
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