VirtualBox

Changeset 47390 in vbox


Ignore:
Timestamp:
Jul 25, 2013 12:40:21 PM (11 years ago)
Author:
vboxsync
Message:

Main: Fix lock order violation in USBDeviceFiltersImpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/USBDeviceFiltersImpl.cpp

    r47376 r47390  
    896896    AssertComRCReturn(autoCaller.rc(), false);
    897897
    898     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    899 
    900898    /* It is not possible to work with USB device if there is no USB controller present. */
    901899    if (!m->pParent->isUSBControllerPresent())
    902900        return false;
     901
     902    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    903903
    904904    /* apply self filters */
     
    937937    AssertComRCReturn(autoCaller.rc(), false);
    938938
    939     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    940 
    941939    /* It is not possible to work with USB device if there is no USB controller present. */
    942940    if (!m->pParent->isUSBControllerPresent())
    943941        return false;
     942
     943    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    944944
    945945    HRESULT rc = S_OK;
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