VirtualBox

Changeset 82179 in vbox for trunk/src


Ignore:
Timestamp:
Nov 25, 2019 2:12:29 PM (5 years ago)
Author:
vboxsync
Message:

buslogic*Construct: NIL handles and assert NIL values in ring-0. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r82153 r82179  
    41064106     * Init instance data (do early because of constructor).
    41074107     */
     4108    pThis->hMmio       = NIL_IOMMMIOHANDLE;
     4109    pThis->hIoPortsIsa = NIL_IOMIOPORTHANDLE;
     4110    pThis->hIoPortsPci = NIL_IOMIOPORTHANDLE;
    41084111    pThisCC->pDevIns = pDevIns;
    41094112    pThisCC->IBase.pfnQueryInterface = buslogicR3StatusQueryInterface;
     
    43564359    PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC);
    43574360
    4358     if (!pThis->uIsaIrq) {
     4361    if (!pThis->uIsaIrq)
     4362    {
     4363        Assert(pThis->hIoPortsIsa == NIL_IOMIOPORTHANDLE);
     4364
    43594365        int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsPci, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
    43604366        AssertRCReturn(rc, rc);
     
    43654371    else
    43664372    {
     4373        Assert(pThis->hIoPortsPci == NIL_IOMIOPORTHANDLE);
     4374        Assert(pThis->hMmio       == NIL_IOMMMIOHANDLE);
     4375
    43674376        int rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortsIsa, buslogicIOPortWrite, buslogicIOPortRead, NULL /*pvUser*/);
    43684377        AssertRCReturn(rc, rc);
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