diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-07-30 15:28:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-08-16 14:19:05 -0700 |
commit | 3fbb95c9e3a18649a7d52f37f6150d2ce8545aa3 (patch) | |
tree | 212f21a0dde83bff50fb83114a682e0906d37e0f /drivers | |
parent | 9d878b6c7f8109e8ee3d7886081e609cbba674fc (diff) |
USB: usbfs: fix -ENOENT error code to be -ENODEV
commit 01105a246345f011fde64d24a601090b646e9e4c upstream.
This patch (as1272) changes the error code returned when an open call
for a USB device node fails to locate the corresponding device. The
appropriate error code is -ENODEV, not -ENOENT.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/devio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index ef03927f85dc..0cdcbcd663bd 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -582,7 +582,7 @@ static int usbdev_open(struct inode *inode, struct file *file) if (!ps) goto out; - ret = -ENOENT; + ret = -ENODEV; /* usbdev device-node */ if (imajor(inode) == USB_DEVICE_MAJOR) |