VirtualBox

Ignore:
Timestamp:
Mar 2, 2010 4:48:38 PM (15 years ago)
Author:
vboxsync
Message:

IOMAllMMIO.cpp: pDevInsR0/RC can be NULL.

File:
1 edited

Legend:

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

    r26944 r26958  
    10641064     *        deregistering PIOMMMIORANGE to deal with remapping/access races
    10651065     *        (unlikely, but an SMP guest shouldn't cause us to crash). */
    1066     Assert(!pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
     1066    Assert(!pRange->CTX_SUFF(pDevIns) || !pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
    10671067
    10681068#ifdef VBOX_WITH_STATISTICS
     
    13171317     *        deregistering PIOMMMIORANGE to deal with remapping/access races
    13181318     *        (unlikely, but an SMP guest shouldn't cause us to crash). */
    1319     Assert(!pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
     1319    Assert(!pRange->CTX_SUFF(pDevIns) || !pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
    13201320
    13211321    if (enmAccessType == PGMACCESSTYPE_READ)
     
    13611361    }
    13621362    /** @todo implement per-device locks for MMIO access. */
    1363     Assert(!pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
     1363    Assert(!pRange->CTX_SUFF(pDevIns) || !pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
    13641364#ifdef VBOX_WITH_STATISTICS
    13651365    PIOMMMIOSTATS pStats = iomMMIOGetStats(&pVM->iom.s, GCPhys, pRange);
     
    14841484    }
    14851485    /** @todo implement per-device locks for MMIO access. */
    1486     Assert(!pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
     1486    Assert(!pRange->CTX_SUFF(pDevIns) || !pRange->CTX_SUFF(pDevIns)->CTX_SUFF(pCritSect));
    14871487#ifdef VBOX_WITH_STATISTICS
    14881488    PIOMMMIOSTATS pStats = iomMMIOGetStats(&pVM->iom.s, GCPhys, pRange);
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