[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-11 08:53:47 +01:00
parent e10e6a85fb
commit 12a66769fc
+1 -1
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