VirtualBox

Ticket #11207: vbox_passthrough.diff

File vbox_passthrough.diff, 846 bytes (added by Derek, 12 years ago)

Simpler patch that only corrects the single connected passthrough device case

  • src/VBox/Devices/USB/DevOHCI.cpp

     
    34143414#endif
    34153415
    34163416    /*
     3417     * clear URBs if the endpoint list is empty
     3418     */
     3419    if (!EdAddr)
     3420    {
     3421        unsigned i, cLeft = pOhci->cInFlight;
     3422        for (i = 0; cLeft && i < RT_ELEMENTS(pOhci->aInFlight); i++)
     3423        {
     3424            PVUSBURB pUrb;
     3425            if (pOhci->aInFlight[i].GCPhysTD) {
     3426                pUrb = ohciTdInFlightUrb(pOhci, pOhci->aInFlight[i].GCPhysTD);
     3427                pOhci->RootHub.pIRhConn->pfnCancelUrbsEp(pOhci->RootHub.pIRhConn, pUrb);
     3428                cLeft--;
     3429            }
     3430        }
     3431    }
     3432
     3433    /*
    34173434     * Iterate the endpoint list.
    34183435     */
    34193436    while (EdAddr)

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy