Author: tfaber
Date: Fri Sep 4 17:31:58 2015
New Revision: 69008
URL:
http://svn.reactos.org/svn/reactos?rev=69008&view=rev
Log:
[HIDCLASS][USBHUB]
- Fix IRP leaks in success case of hidclass!HidClassFDO_GetDescriptors and
usbhub!FowardUrbToRootHub
Modified:
trunk/reactos/drivers/hid/hidclass/fdo.c
trunk/reactos/drivers/usb/usbhub/pdo.c
Modified: trunk/reactos/drivers/hid/hidclass/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/hid/hidclass/fdo.c…
==============================================================================
--- trunk/reactos/drivers/hid/hidclass/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/hid/hidclass/fdo.c [iso-8859-1] Fri Sep 4 17:31:58 2015
@@ -384,6 +384,7 @@
//
// completed successfully
//
+ IoFreeIrp(Irp);
return STATUS_SUCCESS;
}
Modified: trunk/reactos/drivers/usb/usbhub/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbhub/pdo.c?r…
==============================================================================
--- trunk/reactos/drivers/usb/usbhub/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbhub/pdo.c [iso-8859-1] Fri Sep 4 17:31:58 2015
@@ -47,6 +47,11 @@
// Complete the original Irp
//
IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
+
+ //
+ // Free our allocated IRP
+ //
+ IoFreeIrp(Irp);
//
// Return this status so the IO Manager doesnt mess with the Irp