Changeset 32983 in vbox for trunk/src/VBox/Devices/Storage/VBoxSCSI.cpp
- Timestamp:
- Oct 7, 2010 3:14:54 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66493
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VBoxSCSI.cpp
r28800 r32983 271 271 if (pVBoxSCSI->uTxDir == VBOXSCSI_TXDIR_FROM_DEVICE) 272 272 { 273 Assert(!pVBoxSCSI->pBuf); 273 if (pVBoxSCSI->pBuf) 274 RTMemFree(pVBoxSCSI->pBuf); 275 274 276 pVBoxSCSI->pBuf = (uint8_t *)RTMemAllocZ(pVBoxSCSI->cbBuf); 275 277 if (!pVBoxSCSI->pBuf) … … 277 279 } 278 280 279 /* *Allocate scatter gather element. */281 /* Allocate scatter gather element. */ 280 282 pScsiRequest->paScatterGatherHead = (PRTSGSEG)RTMemAllocZ(sizeof(RTSGSEG) * 1); /* Only one element. */ 281 283 if (!pScsiRequest->paScatterGatherHead) … … 286 288 } 287 289 288 /* *Allocate sense buffer. */290 /* Allocate sense buffer. */ 289 291 pScsiRequest->cbSenseBuffer = 18; 290 292 pScsiRequest->pbSenseBuffer = (uint8_t *)RTMemAllocZ(pScsiRequest->cbSenseBuffer); … … 385 387 } 386 388 389 void vboxscsiSetRequestRedo(PVBOXSCSI pVBoxSCSI, PPDMSCSIREQUEST pScsiRequest) 390 { 391 AssertMsg(pVBoxSCSI->fBusy, ("No request to redo\n")); 392 393 RTMemFree(pScsiRequest->paScatterGatherHead); 394 RTMemFree(pScsiRequest->pbSenseBuffer); 395 396 if (pVBoxSCSI->uTxDir == VBOXSCSI_TXDIR_FROM_DEVICE) 397 { 398 AssertPtr(pVBoxSCSI->pBuf); 399 } 400 } 401
Note:
See TracChangeset
for help on using the changeset viewer.