VirtualBox

Changeset 96800 in vbox


Ignore:
Timestamp:
Sep 20, 2022 9:20:31 AM (2 years ago)
Author:
vboxsync
Message:

Devices/DrvVUSBRootHub: Fix possible crash when the device got detached while the controller is resseting the port

File:
1 edited

Legend:

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

    r96407 r96800  
    12321232    PVUSBROOTHUB pThis = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface);
    12331233    PVUSBDEV     pDev  = vusbR3RhGetVUsbDevByPortRetain(pThis, uPort, "vusbR3RhDevReset");
    1234     AssertPtr(pDev);
     1234    AssertPtrReturn(pDev, VERR_VUSB_DEVICE_NOT_ATTACHED);
    12351235
    12361236    int rc = VUSBIDevReset(&pDev->IDevice, fResetOnLinux, pfnDone, pvUser, pVM);
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