ChangeSet 1.985.10.16, 2003/03/25 13:45:59-08:00, [EMAIL PROTECTED]
[PATCH] usb-storage: initialize urb status
This patch initializes the URB status before it's used. While not
technically required, it's good programming practice (and a similar bug
just bit us on 2.4 with UHCI).
drivers/usb/storage/transport.c | 1 +
1 files changed, 1 insertion(+)
diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
--- a/drivers/usb/storage/transport.c Tue Mar 25 16:45:05 2003
+++ b/drivers/usb/storage/transport.c Tue Mar 25 16:45:05 2003
@@ -126,6 +126,7 @@
us->current_urb->actual_length = 0;
us->current_urb->error_count = 0;
us->current_urb->transfer_flags = URB_ASYNC_UNLINK;
+ us->current_urb->status = 0;
/* submit the URB */
status = usb_submit_urb(us->current_urb, GFP_NOIO);
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel