VirtualBox

Changeset 86510 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 9, 2020 10:38:04 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140825
Message:

VMM/PDMLdr: Don't try release .r0 objects till PDMR3TermUVM is called, then the VM structure + ring-0 object will be freed and VMMR0.r0 no longer in use. [order fix] bugref:9841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMLdr.cpp

    r86499 r86510  
    135135    PPDMMOD pModule = pUVM->pdm.s.pModules;
    136136    pUVM->pdm.s.pModules = NULL;
     137    PPDMMOD *ppNext = &pUVM->pdm.s.pModules;
    137138    while (pModule)
    138139    {
     
    162163                   busy when we're called the first time very very early in vmR3Destroy().  */
    163164                PPDMMOD pNextModule = pModule->pNext;
    164                 pModule->pNext = pUVM->pdm.s.pModules;
    165                 pUVM->pdm.s.pModules = pModule;
     165
     166                pModule->pNext = NULL;
     167                *ppNext = pModule;
     168                ppNext = &pModule->pNext;
     169
    166170                pModule = pNextModule;
    167171                continue;
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