https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e10e6a85fbb779e50d967…
commit e10e6a85fbb779e50d967ce584dfa41fec3b5674
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Mar 6 09:21:39 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Mar 11 08:53:45 2019 +0100
[USBHUB_NEW] Don't leak IRP_MJ_SYSTEM_CONTROL requests.
Found by Driver Verifier.
---
drivers/usb/usbhub_new/usbhub.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/usbhub_new/usbhub.c b/drivers/usb/usbhub_new/usbhub.c
index aa3029edbe..b14529d201 100644
--- a/drivers/usb/usbhub_new/usbhub.c
+++ b/drivers/usb/usbhub_new/usbhub.c
@@ -4795,7 +4795,9 @@ USBH_PdoDispatch(IN PUSBHUB_PORT_PDO_EXTENSION PortExtension,
case IRP_MJ_SYSTEM_CONTROL:
DPRINT1("USBH_PdoDispatch: USBH_SystemControl() UNIMPLEMENTED.
FIXME\n");
- Status = STATUS_NOT_SUPPORTED;//USBH_PortSystemControl(PortExtension, Irp);
+ //USBH_PortSystemControl(PortExtension, Irp);
+ Status = Irp->IoStatus.Status;
+ USBH_CompleteIrp(Irp, Status);
break;
default: