VirtualBox

Changeset 86499 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 8, 2020 5:06:45 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140814
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. [fix] bugref:9841

File:
1 edited

Legend:

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

    r86426 r86499  
    149149        {
    150150            case PDMMOD_TYPE_R0:
     151            {
    151152                if (fFinal)
    152153                {
     
    160161                /* Postpone ring-0 module till the PDMR3TermUVM() phase as VMMR0.r0 is still
    161162                   busy when we're called the first time very very early in vmR3Destroy().  */
    162                 pModule = pModule->pNext;
     163                PPDMMOD pNextModule = pModule->pNext;
     164                pModule->pNext = pUVM->pdm.s.pModules;
     165                pUVM->pdm.s.pModules = pModule;
     166                pModule = pNextModule;
    163167                continue;
     168            }
    164169
    165170#ifdef VBOX_WITH_RAW_MODE_KEEP
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