> - 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 Alan ------------------------------------------------------- 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