VirtualBox

Changeset 30499 in vbox


Ignore:
Timestamp:
Jun 29, 2010 12:59:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63191
Message:

Corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r30497 r30499  
    684684    PVMCPU pVCpu = VMMGetCpu0(pVM);
    685685
     686    pLock->pvMap = NULL;    /* invalidate it in case we don't call PGMPhysGCPtr2CCPtrReadOnly */
    686687    STAM_PROFILE_START(&pVM->csam.s.StatTimeAddrConv, a);
    687688
     
    875876                cpu.mode = (fCode32) ? CPUMODE_32BIT : CPUMODE_16BIT;
    876877                rc = CSAMR3DISInstr(pVM, &cpu, pCurInstrGC, pCurInstrHC, &opsize, NULL);
    877                 PGMPhysReleasePageMappingLock(pVM, &PageLock);
     878                if (PageLock.pvMap)
     879                    PGMPhysReleasePageMappingLock(pVM, &PageLock);
    878880            }
    879881            AssertRC(rc);
     
    12771279#endif
    12781280            STAM_PROFILE_STOP(&pVM->csam.s.StatTimeDisasm, a);
    1279             PGMPhysReleasePageMappingLock(pVM, &PageLock);
     1281            if (PageLock.pvMap)
     1282                PGMPhysReleasePageMappingLock(pVM, &PageLock);
    12801283        }
    12811284        if (RT_FAILURE(rc2))
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