VirtualBox

Changeset 34339 in vbox for trunk


Ignore:
Timestamp:
Nov 24, 2010 8:09:27 PM (14 years ago)
Author:
vboxsync
Message:

AHCI: Fix crash for non bootable controllers

File:
1 edited

Legend:

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

    r33540 r34339  
    355355    int rc;
    356356    bool fIdle;
     357
     358    if (pCtl->AsyncIORequestMutex == NIL_RTSEMMUTEX)
     359        return true;
    357360
    358361    rc = RTSemMutexRequest(pCtl->AsyncIORequestMutex, RT_INDEFINITE_WAIT);
     
    52795282        SSMR3PutU8(pSSM, pCtl->aIfs[j].cNotifiedMediaChange);
    52805283        SSMR3PutU32(pSSM, pCtl->aIfs[j].MediaEventStatus);
    5281         SSMR3PutMem(pSSM, pCtl->aIfs[j].pLed, sizeof(PDMLED));
     5284
     5285        PDMLED Led;
     5286        memset(&Led, 0, sizeof(PDMLED));
     5287        SSMR3PutMem(pSSM, &Led, sizeof(PDMLED));
    52825288        SSMR3PutU32(pSSM, pCtl->aIfs[j].cbIOBuffer);
    52835289        if (pCtl->aIfs[j].cbIOBuffer)
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