VirtualBox

Changeset 52961 in vbox for trunk


Ignore:
Timestamp:
Oct 6, 2014 8:04:31 PM (10 years ago)
Author:
vboxsync
Message:

AHCI: Fail the request with an overflow error if allocating I/O memory fails

File:
1 edited

Legend:

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

    r52951 r52961  
    67436743                        rc = ahciIoBufAllocate(pAhciPort, pAhciReq, pAhciReq->cbTransfer);
    67446744                        if (RT_FAILURE(rc))
     6745                        {
     6746                            /* In case we can't allocate enough memory fail the request with an overflow error. */
    67456747                            AssertMsgFailed(("%s: Failed to process command %Rrc\n", __FUNCTION__, rc));
     6748                            pAhciReq->fFlags |= AHCI_REQ_OVERFLOW;
     6749                        }
    67466750                    }
    67476751
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