VirtualBox

Changeset 28380 in vbox


Ignore:
Timestamp:
Apr 15, 2010 5:35:00 PM (15 years ago)
Author:
vboxsync
Message:

AHCI: Fix

File:
1 edited

Legend:

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

    r28065 r28380  
    40784078    {
    40794079        if (pAhciPortTaskState->pvBufferUnaligned)
    4080             RTMemFree(pAhciPortTaskState->pvBufferUnaligned);
     4080            RTMemPageFree(pAhciPortTaskState->pvBufferUnaligned, pAhciPortTaskState->cbBufferUnaligned);
    40814081
    40824082        Log(("%s: Allocating buffer for unaligned segments cbUnaligned=%u\n", __FUNCTION__, cbUnaligned));
    40834083
    4084         pAhciPortTaskState->pvBufferUnaligned = RTMemAllocZ(cbUnaligned);
     4084        pAhciPortTaskState->pvBufferUnaligned = RTMemPageAlloc(cbUnaligned);
    40854085        if (!pAhciPortTaskState->pvBufferUnaligned)
    40864086            return VERR_NO_MEMORY;
     
    41734173    if (!pAhciPortTaskState->paSGEntries)
    41744174    {
    4175         RTMemFree(pAhciPortTaskState->pvBufferUnaligned);
     4175        RTMemPageFree(pAhciPortTaskState->pvBufferUnaligned, pAhciPortTaskState->cbBufferUnaligned);
    41764176        RTMemFree(pAhciPortTaskState->pSGListHead);
    41774177        return VERR_NO_MEMORY;
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