From: Oliver Neukum Date: Thu, 16 Aug 2007 14:02:08 +0000 (+0200) Subject: USB: missing test for ESHUTDOWN in adutux driver X-Git-Tag: v2.6.24-rc1~1395^2~81 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f6c1ceaa3844b7a7787816cc97d15b9fea8b0909;p=linux-2.6-omap-h63xx.git USB: missing test for ESHUTDOWN in adutux driver this driver lacks a test for unlink due to ESHUTDOWN Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c index e9fdbc8997b..5131cbfb2f5 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); }