Commit 82c65a71 authored by Dan Streetman's avatar Dan Streetman Committed by Greg Kroah-Hartman

[PATCH] change devio-disconnect no-driver error code

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.
parent 4c8b54f6
...@@ -1077,7 +1077,7 @@ static int proc_ioctl (struct dev_state *ps, void *arg) ...@@ -1077,7 +1077,7 @@ static int proc_ioctl (struct dev_state *ps, void *arg)
driver->name, ps->dev->devnum, ctrl.ifno); driver->name, ps->dev->devnum, ctrl.ifno);
usb_device_remove(&ifp->dev); usb_device_remove(&ifp->dev);
} else } else
retval = -EINVAL; retval = -ENODATA;
break; break;
/* let kernel drivers try to (re)bind to the interface */ /* let kernel drivers try to (re)bind to the interface */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment