VirtualBox

Changeset 63723 in vbox


Ignore:
Timestamp:
Sep 5, 2016 4:15:00 PM (8 years ago)
Author:
vboxsync
Message:

VD: Free the allocated I/O buffer already when the request completed not only when the request tracking structure is freed

File:
1 edited

Legend:

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

    r63562 r63723  
    410410static DECLCALLBACK(void) drvvdMediaExIoReqComplete(void *pvUser1, void *pvUser2, int rcReq);
    411411static void drvvdPowerOffOrDestructOrUnmount(PPDMDRVINS pDrvIns);
     412DECLINLINE(void) drvvdMediaExIoReqBufFree(PVBOXDISK pThis, PPDMMEDIAEXIOREQINT pIoReq);
     413static int drvvdMediaExIoReqReadWriteProcess(PVBOXDISK pThis, PPDMMEDIAEXIOREQINT pIoReq, bool fUpNotify);
    412414
    413415/**
     
    29202922
    29212923    ASMAtomicXchgU32((volatile uint32_t *)&pIoReq->enmState, VDIOREQSTATE_COMPLETED);
     2924    drvvdMediaExIoReqBufFree(pThis, pIoReq);
    29222925
    29232926    /*
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