The talk about disconnect locking reminded me of this - the error code in the no-driver case for the disconnect ioctl isn't a unique error code. This changes the error code to what getdriver() uses, -ENODATA.
--- linux-2.5.42/drivers/usb/core/devio.c Sat Oct 12 00:22:08 2002 +++ linux/drivers/usb/core/devio.c Mon Oct 14 12:24:18 2002 @@ -1077,7 +1077,7 @@ driver->name, ps->dev->devnum, ctrl.ifno); usb_device_remove(&ifp->dev); } else - retval = -EINVAL; + retval = -ENODATA; break; /* let kernel drivers try to (re)bind to the interface */ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel