VirtualBox

Changeset 104250 in vbox


Ignore:
Timestamp:
Apr 9, 2024 11:55:04 AM (11 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162703
Message:

DevOHCI: Take more care when adding items to in-flight tracker (see bugref:10612).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r104124 r104250  
    911911static DECLCALLBACK(bool)   ohciR3RhXferError(PVUSBIROOTHUBPORT pInterface, PVUSBURB pUrb);
    912912
     913static bool                 ohciR3IsTdInFlight(POHCICC pThisCC, uint32_t GCPhysTD);
    913914static int                  ohciR3InFlightFind(POHCICC pThisCC, uint32_t GCPhysTD);
    914915# if defined(VBOX_STRICT) || defined(LOG_ENABLED)
     
    19421943static void ohciR3InFlightAdd(POHCI pThis, POHCICC pThisCC, uint32_t GCPhysTD, PVUSBURB pUrb)
    19431944{
     1945    if (ohciR3IsTdInFlight(pThisCC, GCPhysTD))
     1946    {
     1947        PPDMDEVINS pDevIns = pThisCC->pDevInsR3;
     1948        ohciR3RaiseUnrecoverableError(pDevIns, pThis, 10);
     1949        return;
     1950    }
     1951
    19441952    int i = ohciR3InFlightFindFree(pThisCC, (GCPhysTD >> 4) % RT_ELEMENTS(pThisCC->aInFlight));
    19451953    if (i >= 0)
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