VirtualBox

Changeset 54175 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 12, 2015 12:52:54 PM (10 years ago)
Author:
vboxsync
Message:

Main/Machine: fix another (unnecessary, the parent lock isn't needed at all) lock order violation. Fixes public bug ticket #13801. Contributed by Alexander Urakov. Thanks!

File:
1 edited

Legend:

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

    r54174 r54175  
    1119111191               )
    1119211192            {
    11193                 ComObjPtr<Medium> parent = pMedium->i_getParent();
    11194                 AutoWriteLock parentLock(parent COMMA_LOCKVAL_SRC_POS);
    11195 
    1119611193                /* update the appropriate lock list */
    1119711194                MediumLockList *pMediumLockList;
     
    1120711204                        fMediaNeedsLocking = true;
    1120811205                    }
    11209                     rc = pMediumLockList->Update(parent, false);
     11206                    rc = pMediumLockList->Update(pMedium->getParent(), false);
    1121011207                    AssertComRC(rc);
    1121111208                    rc = pMediumLockList->Append(pMedium, true);
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