Changeset 80431 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB
- Timestamp:
- Aug 26, 2019 4:31:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r79399 r80431 306 306 } 307 307 308 PVBOXUSBFLT_DEVICE vboxUsbFltDevGet(PDEVICE_OBJECT pPdo)309 {310 PVBOXUSBFLT_DEVICE pDevice;311 312 VBOXUSBFLT_LOCK_ACQUIRE();313 pDevice = vboxUsbFltDevGetLocked(pPdo);314 /*315 * Prevent a host crash when vboxUsbFltDevGetLocked fails to locate the matching PDO316 * in g_VBoxUsbFltGlobals.DeviceList (see @bugref{6509}).317 */318 if (pDevice == NULL)319 {320 WARN(("failed to get device for PDO(0x%p)", pPdo));321 }322 else if (pDevice->enmState > VBOXUSBFLT_DEVSTATE_ADDED)323 {324 vboxUsbFltDevRetain(pDevice);325 LOG(("found device (0x%p), state(%d) for PDO(0x%p)", pDevice, pDevice->enmState, pPdo));326 }327 else328 {329 LOG(("found replugging device (0x%p), state(%d) for PDO(0x%p)", pDevice, pDevice->enmState, pPdo));330 pDevice = NULL;331 }332 VBOXUSBFLT_LOCK_RELEASE();333 334 return pDevice;335 }336 337 308 static NTSTATUS vboxUsbFltPdoReplug(PDEVICE_OBJECT pDo) 338 309 {
Note:
See TracChangeset
for help on using the changeset viewer.