Hi,

Attached the the proper patchfile to fix the race condition with
checking the write status.

Signed-off-by: Adam Oldham <[EMAIL PROTECTED]>

I guess if you're asking me for the Changelog text, maybe:
<[EMAIL PROTECTED]>
        [PATCH] [usblp.c] Initialize status fields in the read and write urbs to
        prevent a race condition with open/read/close - open/write/close
        sequences.

diff -urpN 2.6.12-rc5/drivers/usb/class/usblp.c
2.6.12-rc5-dev/drivers/usb/class/usblp.c
--- 2.6.12-rc5/drivers/usb/class/usblp.c        2005-06-01
10:30:27.000000000 -0700
+++ 2.6.12-rc5-dev/drivers/usb/class/usblp.c    2005-06-01
15:30:07.000000000 -0700
@@ -379,6 +379,8 @@ static int usblp_open(struct inode *inod
       usblp->writeurb->transfer_buffer_length = 0;
       usblp->wcomplete = 1; /* we begin writeable */
       usblp->rcomplete = 0;
+       usblp->writeurb->status = 0;
+       usblp->readurb->status = 0;

       if (usblp->bidir) {
               usblp->readcount = 0;

Attachment: usblp.c.patch
Description: Binary data

Reply via email to