Changeset 99367 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Apr 10, 2023 6:51:21 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/DevOHCI.cpp
r98103 r99367 2050 2050 2051 2051 /** 2052 * Clear any possible leftover traces of a URB from the in-flight tracking. 2053 * Useful if broken guests confuse the tracking logic by using the same TD 2054 * for multiple URBs. See @bugref{10410}. 2055 * 2056 * @param pThisCC OHCI instance data, ring-3 edition. 2057 * @param pUrb The URB. 2058 */ 2059 static void ohciR3InFlightClearUrb(POHCICC pThisCC, PVUSBURB pUrb) 2060 { 2061 unsigned i = 0; 2062 while (i < RT_ELEMENTS(pThisCC->aInFlight)) 2063 { 2064 if (pThisCC->aInFlight[i].pUrb == pUrb) 2065 { 2066 Log2(("ohciR3InFlightClearUrb: clearing leftover URB!!\n")); 2067 pThisCC->aInFlight[i].GCPhysTD = 0; 2068 pThisCC->aInFlight[i].pUrb = NULL; 2069 pThisCC->cInFlight--; 2070 } 2071 i++; 2072 } 2073 } 2074 2075 2076 /** 2052 2077 * Removes all TDs associated with a URB from the in-flight tracking. 2053 2078 * … … 2067 2092 cFramesInFlight = -1; 2068 2093 } 2094 ohciR3InFlightClearUrb(pThisCC, pUrb); 2069 2095 return cFramesInFlight; 2070 2096 }
Note:
See TracChangeset
for help on using the changeset viewer.