VirtualBox

Changeset 22978 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 13, 2009 1:38:16 PM (15 years ago)
Author:
vboxsync
Message:

PDMAsyncCompletion: Fix crash on FreeBSD with failsafe manager. Need to advance to next task before freeing it. File sizes are only set during writes

File:
1 edited

Legend:

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

    r22966 r22978  
    521521    if (pImage->pInterfaceError)
    522522        pImage->pInterfaceErrorCallbacks = VDGetInterfaceError(pImage->pInterfaceError);
     523
     524#ifdef VBOX_WITH_NEW_IO_CODE
     525    /* Try to get async I/O interface. */
     526    pImage->pInterfaceAsyncIO = VDInterfaceGet(pImage->pVDIfsDisk, VDINTERFACETYPE_ASYNCIO);
     527    AssertPtr(pImage->pInterfaceAsyncIO);
     528    pImage->pInterfaceAsyncIOCallbacks = VDGetInterfaceAsyncIO(pImage->pInterfaceAsyncIO);
     529    AssertPtr(pImage->pInterfaceAsyncIOCallbacks);
     530#endif
    523531
    524532    vdiInitPreHeader(&pImage->PreHeader);
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