VirtualBox

Changeset 94016 in vbox


Ignore:
Timestamp:
Mar 1, 2022 9:40:29 AM (3 years ago)
Author:
vboxsync
Message:

Devices/USB: Need to invalidate addresses when detaching USB devices, fixes assertion when doing VM snapshot, bugref:10196

File:
1 edited

Legend:

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

    r93993 r94016  
    429429        Assert(pThis->apDevByAddr[pDev->u8Address] == pDev);
    430430        pThis->apDevByAddr[pDev->u8Address] = NULL;
     431
     432        pDev->u8Address    = VUSB_INVALID_ADDRESS;
     433        pDev->u8NewAddress = VUSB_INVALID_ADDRESS;
    431434    }
    432435    RTCritSectLeave(&pThis->CritSectDevices);
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