VirtualBox

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


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

Main/Machine: fix lock order violation when detaching all media, child lock must not be held when taking parent lock (should fix public ticket #13789). Contributed by Alexander Urakov. Thanks!

File:
1 edited

Legend:

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

    r53867 r54174  
    1109111091                llMedia.push_back(pMedium);
    1109211092                ComObjPtr<Medium> pParent = pMedium->i_getParent();
     11093                /* Not allowed to keep this lock as below we need the parent
     11094                 * medium lock, and the lock order is parent to child. */
     11095                lock.release();
    1109311096                /*
    1109411097                 * Search for medias which are not attached to any machine, but
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