VirtualBox

Changeset 60348 in vbox


Ignore:
Timestamp:
Apr 6, 2016 9:35:36 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106422
Message:

VSCSI: Always initialize the S/G buffer, even if it is empty. Fixes crash with older Solaris 7 and BusLogic device emulation which will issue a INQUIRY command without transfering any data

File:
1 edited

Legend:

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

    r57358 r60348  
    344344    pVScsiReq->cbSense        = cbSense;
    345345    pVScsiReq->pvVScsiReqUser = pvVScsiReqUser;
    346 
    347     if (cSGListEntries)
    348         RTSgBufInit(&pVScsiReq->SgBuf, paSGList, cSGListEntries);
     346    RTSgBufInit(&pVScsiReq->SgBuf, paSGList, cSGListEntries);
    349347
    350348    *phVScsiReq = pVScsiReq;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette