VirtualBox

Changeset 71211 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Mar 5, 2018 8:26:21 PM (7 years ago)
Author:
vboxsync
Message:

iomMmioHandler: pDevIns can be NULL in R0 and RC, return to ring-3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r70948 r71211  
    761761    PPDMDEVINS pDevIns = pRange->CTX_SUFF(pDevIns);
    762762    IOM_UNLOCK_SHARED(pVM);
     763#ifdef IN_RING3
    763764    VBOXSTRICTRC rcStrict = PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_MMIO_READ_WRITE);
     765#else
     766    VBOXSTRICTRC rcStrict = pDevIns ? PDMCritSectEnter(pDevIns->CTX_SUFF(pCritSectRo), VINF_IOM_R3_MMIO_READ_WRITE)
     767                          : VINF_IOM_R3_MMIO_READ_WRITE;
     768#endif
    764769    if (rcStrict == VINF_SUCCESS)
    765770    {
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