USB: usbfs: fix -ENOENT error code to be -ENODEV
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 30 Jul 2009 19:28:14 +0000 (15:28 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Aug 2009 23:05:13 +0000 (16:05 -0700)
commit01105a246345f011fde64d24a601090b646e9e4c
tree867c6496a74a5aa87d81c319cd7c67adadc18f0c
parente8e2ff462dd92693f29eb848f42d3eb720390d59
USB: usbfs: fix -ENOENT error code to be -ENODEV

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c