//
IoCompleteRequest(OriginalIrp, IO_NO_INCREMENT);
+ //
+ // Free our allocated IRP
+ //
+ IoFreeIrp(Irp);
+
//
// Return this status so the IO Manager doesnt mess with the Irp
//
case IOCTL_INTERNAL_USB_GET_PORT_STATUS:
{
PORT_STATUS_CHANGE PortStatus;
- LONG PortId;
+ ULONG PortId;
PUCHAR PortStatusBits;
PortStatusBits = (PUCHAR)Stack->Parameters.Others.Argument1;