VirtualBox

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


Ignore:
Timestamp:
Feb 28, 2022 12:17:45 PM (3 years ago)
Author:
vboxsync
Message:

Devices/USB: Fix for regression introduced with r150168 where a guest failed to enumerate USB devices if more than one device was on the bus when the VM was powered on. Simplify the code even more to not require any lists for devices in the default state, bugref:10196 [assertion fix]

File:
1 edited

Legend:

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

    r93974 r93977  
    10351035    if (pDev->u8Address != VUSB_INVALID_ADDRESS)
    10361036    {
    1037         Assert(pRh->apDevByAddr[VUSB_DEFAULT_ADDRESS] == pDev);
     1037        Assert(pRh->apDevByAddr[pDev->u8Address] == pDev);
    10381038        pRh->apDevByAddr[pDev->u8Address] = NULL;
    10391039    }
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