VirtualBox

Changeset 76681 in vbox


Ignore:
Timestamp:
Jan 7, 2019 3:55:32 PM (6 years ago)
Author:
vboxsync
Message:

USB: Teardown the I/O thread and sync request queue during detach to prevent the I/O thread from accessing the roothub member which was cleared already [fix, move the destruction a bit further down to allow cancelling the URBs]

File:
1 edited

Legend:

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

    r76680 r76681  
    12361236        pRh->pDefaultAddress = NULL;
    12371237
     1238    pDev->pHub->pOps->pfnDetach(pDev->pHub, pDev);
     1239    pDev->i16Port = -1;
     1240
    12381241    /*
    12391242     * Destroy I/O thread and request queue last because they might still be used
     
    12461249    pDev->hReqQueueSync = NIL_RTREQQUEUE;
    12471250
    1248     pDev->pHub->pOps->pfnDetach(pDev->pHub, pDev);
    1249     pDev->i16Port = -1;
    12501251    vusbDevSetState(pDev, VUSB_DEVICE_STATE_DETACHED);
    12511252    pDev->pHub = NULL;
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