VirtualBox

Changeset 93994 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Feb 28, 2022 6:38:30 PM (3 years ago)
Author:
vboxsync
Message:

Devices/USB: Fix crash introduced with r150219 when a USB device is detached while the roothub tries to queue an URB but can't find the device. Also cancel all in flight URBs after the device was removed from the lookup tables in order to prevent the roothub from queueing URBs simultaneously, bugref:10196 [release build fix]

File:
1 edited

Legend:

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

    r93993 r93994  
    223223    PVUSBDEV pDev = pUrb->pVUsb->pDev;
    224224    LogFlow(("%s: vusbUrbErrorRh: pDev=%p[%s] rh=%p\n", pUrb->pszDesc, pDev, pDev->pUsbIns ? pDev->pUsbIns->pszName : "", pRh));
     225    RT_NOREF(pDev);
    225226    return pRh->pIRhPort->pfnXferError(pRh->pIRhPort, pUrb);
    226227}
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