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).

Greg, please apply.

Matt

# This is a BitKeeper generated patch for the following project:
# Project Name: greg k-h's linux 2.5 USB kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#                  ChangeSet    1.696   -> 1.697  
#       drivers/usb/storage/transport.c 1.81    -> 1.82   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/22      [EMAIL PROTECTED]       1.697
# Initialize URB status to zero before submission.
# --------------------------------------------
#
diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
--- a/drivers/usb/storage/transport.c   Sat Mar 22 19:19:28 2003
+++ b/drivers/usb/storage/transport.c   Sat Mar 22 19:19:28 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);
-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

A female who groks UNIX?  My universe is collapsing.
                                        -- Mike
User Friendly, 10/11/1998

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to