[RFC] ttyUSB error on shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When using USB serial console, there is an infinite loop on shutdown.
The console fills with the error message:
  ttyUSB0 - error submitting urb: -22

It seems that writing the error message is causing the error, which
cause the message, which causes the error, ...
The following is needed to avoid the infinite loop.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>

--- a/drivers/usb/serial/generic.c	2012-01-10 10:56:58.667176726 -0800
+++ b/drivers/usb/serial/generic.c	2012-01-16 09:37:26.754919670 -0800
@@ -217,8 +217,6 @@ retry:
 	clear_bit(i, &port->write_urbs_free);
 	result = usb_submit_urb(urb, GFP_ATOMIC);
 	if (result) {
-		dev_err(&port->dev, "%s - error submitting urb: %d\n",
-						__func__, result);
 		set_bit(i, &port->write_urbs_free);
 		spin_lock_irqsave(&port->lock, flags);
 		port->tx_bytes -= count;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux