[ros-diffs] [cgutman] 55971: [LIBUSB] - Don't assert that the clear stall will complete successfully since it may be sent for a removal - Fixes removal surprise removal of HID devices

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Mar 3 20:17:31 UTC 2012


Author: cgutman
Date: Sat Mar  3 20:17:29 2012
New Revision: 55971

URL: http://svn.reactos.org/svn/reactos?rev=55971&view=rev
Log:
[LIBUSB]
- Don't assert that the clear stall will complete successfully since it may be sent for a removal
- Fixes removal surprise removal of HID devices

Modified:
    trunk/reactos/lib/drivers/libusb/hub_controller.cpp

Modified: trunk/reactos/lib/drivers/libusb/hub_controller.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/hub_controller.cpp?rev=55971&r1=55970&r2=55971&view=diff
==============================================================================
--- trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] Sat Mar  3 20:17:29 2012
@@ -1802,8 +1802,8 @@
     //
     // reset data toggle
     //
-    ASSERT(NT_SUCCESS(Status));
-    EndpointDescriptor->DataToggle = 0x0;
+    if (NT_SUCCESS(Status))
+        EndpointDescriptor->DataToggle = 0x0;
 
     //
     // done




More information about the Ros-diffs mailing list