Changeset 46819 in vbox
- Timestamp:
- Jun 27, 2013 7:52:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r46738 r46819 4080 4080 uint8_t *pbBufDst; 4081 4081 uint8_t *pbBufSrc = (uint8_t *)pAhciReq->u.Io.DataSeg.pvSeg; 4082 4083 pbBuf = (uint8_t *)RTMemAlloc(pAhciReq->cbTransfer); 4082 size_t cbAlloc = pAhciReq->cbTransfer + cSectors * (1 + 11 + 3 + 1 + 288); /* Per sector data like ECC. */ 4083 4084 pbBuf = (uint8_t *)RTMemAlloc(cbAlloc); 4084 4085 if (RT_UNLIKELY(!pbBuf)) 4085 4086 return VERR_NO_MEMORY; … … 4107 4108 4108 4109 *ppvProc = pbBuf; 4109 *pcbProc = pAhciReq->cbTransfer;4110 *pcbProc = cbAlloc; 4110 4111 4111 4112 return VINF_SUCCESS; … … 5360 5361 if (RT_SUCCESS(rc)) 5361 5362 { 5362 ahciCopyToPrdtl(pDevIns, pAhciReq, pv, cb);5363 pAhciReq->cbTransfer = ahciCopyToPrdtl(pDevIns, pAhciReq, pv, cb); 5363 5364 RTMemFree(pv); 5364 5365 }
Note:
See TracChangeset
for help on using the changeset viewer.