VirtualBox

Changeset 20776 in vbox


Ignore:
Timestamp:
Jun 22, 2009 1:09:03 PM (15 years ago)
Author:
vboxsync
Message:

IOMR3MMIODeregister: unlock in assertion return paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/IOM.cpp

    r20728 r20776  
    16621662            return VERR_IOM_MMIO_RANGE_NOT_FOUND;
    16631663        }
    1664         AssertMsgReturn(pRange->pDevInsR3 == pDevIns,
    1665                         ("Not owner! GCPhys=%RGp %RGp LB%#x %s\n", GCPhys, GCPhysStart, cbRange, pRange->pszDesc),
    1666                         VERR_IOM_NOT_MMIO_RANGE_OWNER);
    1667         AssertMsgReturn(pRange->Core.KeyLast <= GCPhysLast,
    1668                         ("Incomplete R3 range! GCPhys=%RGp %RGp LB%#x %s\n", GCPhys, GCPhysStart, cbRange, pRange->pszDesc),
    1669                         VERR_IOM_INCOMPLETE_MMIO_RANGE);
     1664        AssertMsgReturnStmt(pRange->pDevInsR3 == pDevIns,
     1665                            ("Not owner! GCPhys=%RGp %RGp LB%#x %s\n", GCPhys, GCPhysStart, cbRange, pRange->pszDesc),
     1666                            iomUnlock(pVM),
     1667                            VERR_IOM_NOT_MMIO_RANGE_OWNER);
     1668        AssertMsgReturnStmt(pRange->Core.KeyLast <= GCPhysLast,
     1669                            ("Incomplete R3 range! GCPhys=%RGp %RGp LB%#x %s\n", GCPhys, GCPhysStart, cbRange, pRange->pszDesc),
     1670                            iomUnlock(pVM),
     1671                            VERR_IOM_INCOMPLETE_MMIO_RANGE);
    16701672
    16711673        /* next */
     
    16991701        MMHyperFree(pVM, pRange);
    17001702    }
     1703
    17011704    iomUnlock(pVM);
    1702 
    17031705    return VINF_SUCCESS;
    17041706}
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