VirtualBox

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


Ignore:
Timestamp:
Oct 6, 2021 7:22:22 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147290
Message:

VMM/PGMR3PhysRegisterRam: Must release lock when returning VERR_PGM_RAM_CONFLICT.

File:
1 edited

Legend:

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

    r91247 r91581  
    18221822    /*
    18231823     * Find range location and check for conflicts.
    1824      * (We don't lock here because the locking by EMT is only required on update.)
    18251824     */
    18261825    PPGMRAMRANGE    pPrev = NULL;
     
    18281827    while (pRam && GCPhysLast >= pRam->GCPhys)
    18291828    {
    1830         if (    GCPhysLast >= pRam->GCPhys
    1831             &&  GCPhys     <= pRam->GCPhysLast)
    1832             AssertLogRelMsgFailedReturn(("%RGp-%RGp (%s) conflicts with existing %RGp-%RGp (%s)\n",
    1833                                          GCPhys, GCPhysLast, pszDesc,
    1834                                          pRam->GCPhys, pRam->GCPhysLast, pRam->pszDesc),
    1835                                         VERR_PGM_RAM_CONFLICT);
     1829        AssertLogRelMsgReturnStmt(   GCPhysLast < pRam->GCPhys
     1830                                  || GCPhys     > pRam->GCPhysLast,
     1831                                  ("%RGp-%RGp (%s) conflicts with existing %RGp-%RGp (%s)\n",
     1832                                   GCPhys, GCPhysLast, pszDesc, pRam->GCPhys, pRam->GCPhysLast, pRam->pszDesc),
     1833                                  PGM_UNLOCK(pVM), VERR_PGM_RAM_CONFLICT);
    18361834
    18371835        /* next */
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