Am Sonntag, 6. März 2005 23:30 schrieb [EMAIL PROTECTED]: > + if (!wait_event_timeout(ep->wait, (ep->urb->status != -EINPROGRESS), > 500)) { > + printk(KERN_ERR "usbmidi: usb_bulk_msg timed out\n"); > + ret = -ETIME;
No sorry. You really should not test for EINPROGRESS. The existing code was bad, but if you fix it, the fix should be clean. Regards Oliver ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel