VirtualBox

Changeset 46509 in vbox


Ignore:
Timestamp:
Jun 12, 2013 2:41:25 PM (11 years ago)
Author:
vboxsync
Message:

VSCSI: Careful with non-present LUNs.

File:
1 edited

Legend:

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

    r44528 r46509  
    102102        case SCSI_TEST_UNIT_READY:
    103103        {
    104             if (pVScsiDevice->papVScsiLun[pVScsiReq->iLun]->fReady)
     104            if (   vscsiDeviceLunIsPresent(pVScsiDevice, pVScsiReq->iLun)
     105                && pVScsiDevice->papVScsiLun[pVScsiReq->iLun]->fReady)
    105106                *prcReq = vscsiReqSenseOkSet(&pVScsiDevice->VScsiSense, pVScsiReq);
    106107            else
    107                 fProcessed = false; /* The LUN will provide details. */
     108                fProcessed = false; /* The LUN (if present) will provide details. */
    108109            break;
    109110        }
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