[USBPORT] Don't change the status of IRP_MJ_SYSTEM_CONTROL requests.
authorThomas Faber <thomas.faber@reactos.org>
Tue, 5 Mar 2019 16:28:20 +0000 (17:28 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 11 Mar 2019 07:53:47 +0000 (08:53 +0100)
Found by Driver Verifier.

drivers/usb/usbport/usbport.c

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