[USBPORT] Don't change the status of IRP_MJ_SYSTEM_CONTROL requests.

Found by Driver Verifier.
This commit is contained in:
Thomas Faber 2019-03-05 17:28:20 +01:00
parent e10e6a85fb
commit 12a66769fc
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -2711,7 +2711,7 @@ USBPORT_Dispatch(IN PDEVICE_OBJECT DeviceObject,
IoStack->MajorFunction,
IoStack->MinorFunction);
Irp->IoStatus.Status = Status;
Status = Irp->IoStatus.Status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
}
else