USB: usbfs: fix -ENOENT error code to be -ENODEV
commit3e16ba377737c5815cd1d6315c3cffe9c6e388ad
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 30 Jul 2009 19:28:14 +0000 (30 15:28 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:27:30 +0000 (16 14:27 -0700)
treef29ce95e2a2c3ae20a0336cd42624f4e7b6dbbb1
parent11c1ac9a64dd2d3ff5a7dc3bce57acf61bd8cd7f
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>
drivers/usb/core/devio.c