VirtualBox

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


Ignore:
Timestamp:
Jan 15, 2025 9:29:08 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166938
Message:

Main/HostImpl.cpp: Fixed lock order problem in Host::i_updateNetIfList / HostNetworkInterface::i_setVirtualBox / VirtualBox::getExtraData after r166866.

File:
1 edited

Legend:

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

    r107676 r107797  
    37103710    }
    37113711
     3712    /* Take the parent (VirtualBox) lock first to avoid lock order issues, when
     3713       HostNetworkInterface::i_setVirtualBox calls VirtualBox::getExtraData. */
     3714    AssertReturn(m->pParent, E_FAIL);
     3715    AutoReadLock alockParent(m->pParent COMMA_LOCKVAL_SRC_POS);
    37123716    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    37133717
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette