https://git.reactos.org/?p=reactos.git;a=commitdiff;h=267f5633ee5530df52aac…
commit 267f5633ee5530df52aac0569789796545acdd0c
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Tue Mar 5 22:23:46 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Mar 11 08:53:49 2019 +0100
[USBPORT] Leave IRP status untouched for unhandled interfaces.
Found by Driver Verifier.
---
drivers/usb/usbport/iface.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/usbport/iface.c b/drivers/usb/usbport/iface.c
index 7897528da6..1061915797 100644
--- a/drivers/usb/usbport/iface.c
+++ b/drivers/usb/usbport/iface.c
@@ -804,7 +804,7 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
DPRINT1("USB_BUS_INTERFACE_HUB_GUID version %x not supported!\n",
IoStack->Parameters.QueryInterface.Version);
- return STATUS_NOT_SUPPORTED; // Version not supported
+ return Irp->IoStatus.Status; // Version not supported
}
/* Interface version 0 */
@@ -864,7 +864,7 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
DPRINT1("USB_BUS_INTERFACE_USBDI_GUID version %x not
supported!\n",
IoStack->Parameters.QueryInterface.Version);
- return STATUS_NOT_SUPPORTED; // Version not supported
+ return Irp->IoStatus.Status; // Version not supported
}
/* Interface version 0 */
@@ -904,5 +904,5 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
}
}
- return STATUS_NOT_SUPPORTED;
+ return Irp->IoStatus.Status;
}