]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: fix console error reporting
authorJohan Hovold <jhovold@gmail.com>
Fri, 10 Feb 2012 12:20:49 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:26:54 +0000 (09:26 -0700)
commita4b9552b4fa34648a5017901ed8042214a9dfc03
treeb6d2b71b88311d3b73d086da8862e042e5254d01
parenteb49cf6c6945f4fd5cb6fc1281b2ebfc34b15083
USB: serial: fix console error reporting

commit 548dd4b6da8a8e428453d55f7fa7b8a46498d147 upstream.

Do not report errors in write path if port is used as a console as this
may trigger the same error (and error report) resulting in a loop.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c