Author: ion
Date: Fri Jul 19 23:51:01 2013
New Revision: 59526
URL:
http://svn.reactos.org/svn/reactos?rev=59526&view=rev
Log:
[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.
Modified:
trunk/reactos/drivers/usb/usbccgp/fdo.c
Modified: trunk/reactos/drivers/usb/usbccgp/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbccgp/fdo.c?…
==============================================================================
--- trunk/reactos/drivers/usb/usbccgp/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbccgp/fdo.c [iso-8859-1] Fri Jul 19 23:51:01 2013
@@ -536,8 +536,8 @@
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 */