Przeglądaj źródła

[PATCH] USB: remove annoying message

Avoid an annoying message that can appear if devices are disconnected
in the middle of a USB scatterlist operation.

Message noted in http://bugzilla.kernel.org/show_bug.cgi?id=4373
(but the real issue there seems to be a SCSI level hang).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
david-b@pacbell.net 20 lat temu
rodzic
commit
8f34c2883b
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      drivers/usb/core/message.c

+ 3 - 1
drivers/usb/core/message.c

@@ -265,7 +265,9 @@ static void sg_complete (struct urb *urb, struct pt_regs *regs)
 				continue;
 				continue;
 			if (found) {
 			if (found) {
 				status = usb_unlink_urb (io->urbs [i]);
 				status = usb_unlink_urb (io->urbs [i]);
-				if (status != -EINPROGRESS && status != -EBUSY)
+				if (status != -EINPROGRESS
+						&& status != -ENODEV
+						&& status != -EBUSY)
 					dev_err (&io->dev->dev,
 					dev_err (&io->dev->dev,
 						"%s, unlink --> %d\n",
 						"%s, unlink --> %d\n",
 						__FUNCTION__, status);
 						__FUNCTION__, status);