summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorOliver Neukum2007-08-16 16:02:08 +0200
committerGreg Kroah-Hartman2007-10-12 23:55:16 +0200
commitf6c1ceaa3844b7a7787816cc97d15b9fea8b0909 (patch)
treef309c524fbc8aca4a22cf9fdaff82e6e1b12b1e0 /drivers/usb/misc
parentusb: remove redundant memset from amd5536udc (diff)
downloadkernel-qcow2-linux-f6c1ceaa3844b7a7787816cc97d15b9fea8b0909.tar.gz
kernel-qcow2-linux-f6c1ceaa3844b7a7787816cc97d15b9fea8b0909.tar.xz
kernel-qcow2-linux-f6c1ceaa3844b7a7787816cc97d15b9fea8b0909.zip
USB: missing test for ESHUTDOWN in adutux driver
this driver lacks a test for unlink due to ESHUTDOWN Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r--drivers/usb/misc/adutux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index e9fdbc8997b3..5131cbfb2f52 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -188,7 +188,8 @@ static void adu_interrupt_in_callback(struct urb *urb)
spin_lock(&dev->buflock);
if (status != 0) {
- if ((status != -ENOENT) && (status != -ECONNRESET)) {
+ if ((status != -ENOENT) && (status != -ECONNRESET) &&
+ (status != -ESHUTDOWN)) {
dbg(1," %s : nonzero status received: %d",
__FUNCTION__, status);
}