[HIDCLASS][USBHUB]
[reactos.git] / reactos / drivers / usb / usbhub / pdo.c
index 9a1f50d..7813920 100644 (file)
@@ -48,6 +48,11 @@ UrbCompletion(
     //
     IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
 
+    //
+    // Free our allocated IRP
+    //
+    IoFreeIrp(Irp);
+
     //
     // Return this status so the IO Manager doesnt mess with the Irp
     //
@@ -307,7 +312,7 @@ USBHUB_PdoHandleInternalDeviceControl(
         case IOCTL_INTERNAL_USB_GET_PORT_STATUS:
         {
             PORT_STATUS_CHANGE PortStatus;
-            LONG PortId;
+            ULONG PortId;
             PUCHAR PortStatusBits;
 
             PortStatusBits = (PUCHAR)Stack->Parameters.Others.Argument1;