[USBCCGP] Ignore IRP_MN_REMOVE_DEVICE return status and don't wait for it to complete.

This commit is contained in:
Thomas Faber 2019-03-08 15:49:22 +01:00
parent 823101274a
commit 71a4462ad5
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -397,16 +397,15 @@ FDO_HandlePnp(
FDO_CloseConfiguration(DeviceObject); FDO_CloseConfiguration(DeviceObject);
/* Send the IRP down the stack */ /* Send the IRP down the stack */
Status = USBCCGP_SyncForwardIrp(FDODeviceExtension->NextDeviceObject, Irp->IoStatus.Status = STATUS_SUCCESS;
Irp); IoSkipCurrentIrpStackLocation(Irp);
if (NT_SUCCESS(Status)) Status = IoCallDriver(FDODeviceExtension->NextDeviceObject, Irp);
{
/* Detach from the device stack */
IoDetachDevice(FDODeviceExtension->NextDeviceObject);
/* Delete the device object */ /* Detach from the device stack */
IoDeleteDevice(DeviceObject); IoDetachDevice(FDODeviceExtension->NextDeviceObject);
}
/* Delete the device object */
IoDeleteDevice(DeviceObject);
/* Request completed */ /* Request completed */
break; break;