VirtualBox

Changeset 56639 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 25, 2015 2:56:30 PM (9 years ago)
Author:
vboxsync
Message:

AHCI: Make sure all memory allocated from the driver below is freed before it is unmounted

File:
1 edited

Legend:

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

    r56594 r56639  
    46534653                     */
    46544654                    ahciR3PortCachedReqsFree(pAhciPort);
     4655
     4656                    /*
     4657                     * Also make sure that the current request has no memroy still allocated
     4658                     * because it might be allocated by the driver below us. We don't require
     4659                     * it here anyway.
     4660                     */
     4661                    ahciReqMemFree(pAhciPort, pAhciReq, true /* fForceFree */);
    46554662
    46564663                    rc = VMR3ReqPriorityCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY,
     
    75977604    Log(("%s:\n", __FUNCTION__));
    75987605
     7606    /* Free all cached I/O tasks. */
     7607    ahciR3PortCachedReqsFree(pAhciPort);
     7608
    75997609    pAhciPort->cTotalSectors = 0;
    76007610
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