Changeset 57522 in vbox for trunk/src/VBox/Devices/USB
- Timestamp:
- Aug 25, 2015 9:52:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/usbip/USBProxyDevice-usbip.cpp
r57406 r57522 82 82 /** Pipe stalled. */ 83 83 #define USBIP_STATUS_PIPE_STALLED INT32_C(-32) 84 /** Short read. */ 85 #define USBIP_STATUS_SHORT_READ INT32_C(-121) 84 86 /** @} */ 85 87 … … 560 562 DECLINLINE(int) usbProxyUsbIpStatusConvertFromStatus(int32_t i32Status) 561 563 { 562 if (RT_LIKELY(i32Status == USBIP_STATUS_SUCCESS)) 564 if (RT_LIKELY( i32Status == USBIP_STATUS_SUCCESS 565 || i32Status == USBIP_STATUS_SHORT_READ)) 563 566 return VINF_SUCCESS; 564 567 … … 582 585 DECLINLINE(VUSBSTATUS) usbProxyUsbIpVUsbStatusConvertFromStatus(int32_t i32Status) 583 586 { 584 if (RT_LIKELY(i32Status == USBIP_STATUS_SUCCESS)) 587 if (RT_LIKELY( i32Status == USBIP_STATUS_SUCCESS 588 || i32Status == USBIP_STATUS_SHORT_READ)) 585 589 return VUSBSTATUS_OK; 586 590 … … 1093 1097 1094 1098 UsbIpReqSubmit ReqSubmit; 1099 1100 RT_ZERO(ReqSubmit); 1095 1101 ReqSubmit.Hdr.u32ReqRet = USBIP_CMD_SUBMIT; 1096 1102 ReqSubmit.Hdr.u32SeqNum = pUrbUsbIp->u32SeqNumUrb; … … 1120 1126 if (pUrb->enmDir == VUSBDIRECTION_OUT) 1121 1127 { 1122 ReqSubmit.u32TransferBufferLength -= sizeof(VUSBSETUP);1123 1128 aSegReq[cSegsUsed].cbSeg = pUrb->cbData - sizeof(VUSBSETUP); 1124 1129 aSegReq[cSegsUsed].pvSeg = pUrb->abData + sizeof(VUSBSETUP); … … 1275 1280 pDevUsbIp->pszBusId = NULL; 1276 1281 usbProxyUsbIpResetRecvState(pDevUsbIp); 1277 1278 pProxyDev->iActiveCfg = 1; /** @todo that may not be always true. */1279 pProxyDev->cIgnoreSetConfigs = 1;1280 1282 1281 1283 rc = RTSemFastMutexCreate(&pDevUsbIp->hMtxLists);
Note:
See TracChangeset
for help on using the changeset viewer.