Hi,
        This is my fix for usbfs losing data when the urb
is timed out but already contains data.

/Brian

Signed-off-by: Brian Murphy <[EMAIL PROTECTED]>

Index: drivers/usb/core/message.c
===================================================================
RCS file: /cvs/linux-kernel/drivers/usb/core/message.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- drivers/usb/core/message.c  12 Feb 2005 08:52:24 -0000      1.1
+++ drivers/usb/core/message.c  12 Feb 2005 09:05:57 -0000      1.2
@@ -70,7 +70,10 @@
                                current->comm,
                                usb_pipeendpoint(urb->pipe),
                                usb_pipein(urb->pipe) ? "in" : "out");
-                       status = -ETIMEDOUT;
+                       if (urb->actual_length > 0)
+                               status = 0;
+                       else
+                               status = -ETIMEDOUT;
                }
                if (timeout > 0)
                        del_timer_sync(&timer);


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to