- Timestamp:
- Jun 26, 2013 2:24:17 PM (11 years ago)
- Location:
- trunk/src/VBox/Devices/USB
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/VUSBDevice.cpp
r45755 r46806 996 996 997 997 PVUSBROOTHUB pRh = vusbDevGetRh(pDev); 998 AssertPtrReturnVoid(pRh); 998 999 if (pDev->u8Address == VUSB_DEFAULT_ADDRESS) 999 1000 pRh->pDefaultAddress = NULL; … … 1035 1036 { 1036 1037 PVUSBROOTHUB pRh = vusbDevGetRh(pDev); 1038 AssertPtrReturnVoid(pRh); 1037 1039 1038 1040 /* -
trunk/src/VBox/Devices/USB/VUSBReadAhead.cpp
r44528 r46806 369 369 if (pArgs) 370 370 { 371 PVUSBROOTHUB pRh = vusbDevGetRh(pDev); 371 372 pArgs->pDev = pDev; 372 373 pArgs->pPipe = pPipe; 373 374 pArgs->fTerminate = false; 374 pArgs->fHighSpeed = ((vusbDevGetRh(pDev)->fHcVersions & VUSB_STDVER_20) != 0);375 pArgs->fHighSpeed = pRh && ((pRh->fHcVersions & VUSB_STDVER_20) != 0); 375 376 if (pArgs->fHighSpeed) 376 377 rc = RTThreadCreate(&pPipe->ReadAheadThread, vusbDevReadAheadThread, pArgs, 0, RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE, "USBISOC"); -
trunk/src/VBox/Devices/USB/VUSBUrb.cpp
r45755 r46806 990 990 PVUSBDEV pDev = pUrb->VUsb.pDev; 991 991 PVUSBROOTHUB pRh = vusbDevGetRh(pDev); 992 AssertPtrReturn(pRh, VERR_VUSB_DEVICE_NOT_ATTACHED); 992 993 LogFlow(("%s: vusbUrbErrorRh: pDev=%p[%s] rh=%p\n", pUrb->pszDesc, pDev, pDev->pUsbIns ? pDev->pUsbIns->pszName : "", pRh)); 993 994 return pRh->pIRhPort->pfnXferError(pRh->pIRhPort, pUrb); … … 1012 1013 */ 1013 1014 PVUSBROOTHUB pRh = vusbDevGetRh(pUrb->VUsb.pDev); 1015 AssertPtrReturnVoid(pRh); 1014 1016 if (pUrb->enmType != VUSBXFERTYPE_MSG) 1015 1017 { … … 1115 1117 #ifndef VBOX_WITH_STATISTICS 1116 1118 PVUSBROOTHUB pRh = vusbDevGetRh(pUrb->VUsb.pDev); 1119 AssertPtrReturnVoid(pRh); 1117 1120 #endif 1118 1121
Note:
See TracChangeset
for help on using the changeset viewer.