VirtualBox

Changeset 33486 in vbox for trunk


Ignore:
Timestamp:
Oct 27, 2010 9:04:30 AM (14 years ago)
Author:
vboxsync
Message:

Additional checks

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

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

    r33485 r33486  
    47064706        PPDMDEVINS pDevIns = pCtl->CTX_SUFF(pDevIns);
    47074707        rc = PGMPhysSimpleDirtyWriteGCPtr(PDMDevHlpGetVMCPU(pDevIns), GCDst, s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, cbTransfer);
     4708#ifndef IN_RING3
     4709        /* Paranoia. */
     4710        if (RT_FAILURE(rc))
     4711        {
     4712            PDMCritSectLeave(&pCtl->lock);
     4713            AssertFailed();
     4714            return VINF_IOM_HC_IOPORT_READ;
     4715        }
     4716#else
    47084717        Assert(rc == VINF_SUCCESS);
     4718#endif
    47094719
    47104720        if (cbTransfer)
     
    47594769        rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer);
    47604770#ifndef IN_RING3
    4761         /* This can fail in RC if the page table is not present for example. */
     4771        /* Paranoia. */
    47624772        if (RT_FAILURE(rc))
    47634773        {
    47644774            PDMCritSectLeave(&pCtl->lock);
     4775            AssertFailed();
    47654776            return VINF_IOM_HC_IOPORT_WRITE;
    47664777        }
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r33485 r33486  
    54855485
    54865486        rc = PGMPhysSimpleDirtyWriteGCPtr(PDMDevHlpGetVMCPU(pDevIns), GCDst, s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, cbTransfer);
     5487#ifndef IN_RING3
     5488        /* Paranoia. */
     5489        if (RT_FAILURE(rc))
     5490        {
     5491            PDMCritSectLeave(&pCtl->lock);
     5492            AssertFailed();
     5493            return VINF_IOM_HC_IOPORT_READ;
     5494        }
     5495#else
    54875496        Assert(rc == VINF_SUCCESS);
     5497#endif
    54885498
    54895499        if (cbTransfer)
     
    55445554        rc = PGMPhysSimpleReadGCPtr(PDMDevHlpGetVMCPU(pDevIns), s->CTX_SUFF(pbIOBuffer) + s->iIOBufferPIODataStart, GCSrc, cbTransfer);
    55455555#ifndef IN_RING3
    5546         /* This can fail in RC if the page table is not present for example. */
     5556        /* Paranoia. */
    55475557        if (RT_FAILURE(rc))
    55485558        {
    55495559            PDMCritSectLeave(&pCtl->lock);
     5560            AssertFailed();
    55505561            return VINF_IOM_HC_IOPORT_WRITE;
    55515562        }
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