[USBCCGP]: FDO_HandleResetCyclePort should complete the pending IRPs, not the reset IRP. In fact, since the caller (FDO_HandleInternalDeviceControl) already completes the reset IRP, this was also causing double IRP completion. THIS IS WHY GCC 4.7 WARNINGS ARE IMPORTANT.

svn path=/trunk/; revision=59526
This commit is contained in:
Alex Ionescu 2013-07-19 23:51:01 +00:00
parent 7cf03fb58d
commit d27393f669

View file

@ -536,8 +536,8 @@ FDO_HandleResetCyclePort(
ListIrp = (PIRP)CONTAINING_RECORD(Entry, IRP, Tail.Overlay.ListEntry);
/* Complete request with status success */
Irp->IoStatus.Status = STATUS_SUCCESS;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
ListIrp->IoStatus.Status = STATUS_SUCCESS;
IoCompleteRequest(ListIrp, IO_NO_INCREMENT);
}
/* Status success */