VirtualBox

Changeset 55657 in vbox for trunk/src


Ignore:
Timestamp:
May 5, 2015 11:22:57 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100043
Message:

NetShaper: Fallback to R3 if there is no underlying R0 (#5582).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNetShaper.cpp

    r45061 r55657  
    297297{
    298298    PDRVNETSHAPER pThis = RT_FROM_MEMBER(pInterface, DRVNETSHAPER, IBaseR0);
    299     PDMIBASER0_RETURN_INTERFACE(pThis->pDrvInsR3, pszIID, PDMINETWORKUP, &pThis->INetworkUpR0);
     299    /*
     300     * We need to check if the underlying driver supports R0. If it does not,
     301     * then it is useless and even harmful to support R0 here, as we will end up
     302     * returning errors when a network adapter tries to allocate a buffer in R0.
     303     */
     304    if (pThis->pIBelowNetR0)
     305        PDMIBASER0_RETURN_INTERFACE(pThis->pDrvInsR3, pszIID, PDMINETWORKUP, &pThis->INetworkUpR0);
    300306    return NIL_RTR0PTR;
    301307}
Note: See TracChangeset for help on using the changeset viewer.

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