On Thu, Jun 02, 2005 at 05:16:34PM -0400, C. Adam Oldham wrote: > 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;
Oops, the patch is linewrapped and the tabs are eaten. Care to reconfigure your email client and try again? thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel