On Fri, Jul 12, 2002 at 04:52:19PM +0100, Alan Cox wrote:
> > - usblp->writeurb->transfer_buffer_length)) return
>-EFAULT;
> > + usblp->writeurb->transfer_buffer_length)) {
> > + up(&usblp->sem);
> > + return -EFAULT;
>
> This seems wrong. A fault on a partial write should return the number of
> bytes successfully processed. I think you want
>
> writecount?writecount:-EFAULT
>
> Same sem bug was in 2.4 so I fixed it there
Thanks for the catch. I've modified my 2.4 and 2.5 trees with this
fix.
greg k-h
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel