USB: missing test for ESHUTDOWN in adutux driver
authorOliver Neukum <oneukum@suse.de>
Thu, 16 Aug 2007 14:02:08 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:16 +0000 (14:55 -0700)
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>
drivers/usb/misc/adutux.c

index e9fdbc8997b32c2be588a3b52030448c4a689307..5131cbfb2f5230cec9c0c3cd9d5c95d5f5731538 100644 (file)
@@ -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);
                }