VirtualBox

Ignore:
Timestamp:
May 13, 2024 12:16:21 PM (8 months ago)
Author:
vboxsync
Message:

Devices/USB/darwin/USBProxyDevice-darwin.cpp: Return rc instead of VINF_SUCCESS to catch errors, log if ResetDevice() fails and one additional debug assertion to ensure GetBusFrameNumber() succeeds, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r104504 r104590  
    838838
    839839    /** @todo sort or hash these for speedy lookup... */
    840     return VINF_SUCCESS;
     840    return rc;
    841841}
    842842
     
    13511351                                }
    13521352                            }
    1353                             vrc = VERR_VUSB_DEVICE_NOT_ATTACHED;
     1353                            else
     1354                                vrc = VERR_VUSB_DEVICE_NOT_ATTACHED;
    13541355                        }
    13551356                        else
     
    14371438
    14381439    IOReturn irc = (*pDevOsX->ppDevI)->ResetDevice(pDevOsX->ppDevI);
     1440    AssertLogRelMsg(irc == kIOReturnSuccess || irc == kIOReturnNoDevice,
     1441                    ("USB: ResetDevice -> %#x\n", irc));
    14391442
    14401443    irc = (*pDevOsX->ppDevI)->USBDeviceClose(pDevOsX->ppDevI);
     
    18151818                /* try again... */
    18161819                irc = (*pIf->ppIfI)->GetBusFrameNumber(pIf->ppIfI, &FrameNo, &FrameTime);
     1820                AssertMsg(irc == kIOReturnSuccess, ("GetBusFrameNumber -> %#x\n", irc));
    18171821                if (FrameNo <= pPipe->u64NextFrameNo)
    18181822                    FrameNo = pPipe->u64NextFrameNo;
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