VirtualBox

Changeset 55337 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 20, 2015 12:37:46 PM (10 years ago)
Author:
vboxsync
Message:

USB: Walk the async URB list only under the critical section or we might end up accessing invalid data. Should hopefully fix a crash seen by a customer

File:
1 edited

Legend:

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

    r53977 r55337  
    10471047     * Iterate the URBs and cancel them.
    10481048     */
     1049    RTCritSectEnter(&pDev->CritSectAsyncUrbs);
    10491050    PVUSBURB pUrb = pDev->pAsyncUrbHead;
    10501051    while (pUrb)
     
    11191120        }
    11201121    }
    1121 
     1122    RTCritSectLeave(&pDev->CritSectAsyncUrbs);
    11221123    return VINF_SUCCESS;
    11231124}
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