]> git.baikalelectronics.ru Git - kernel.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>
Fri, 10 Feb 2012 18:20:36 +0000 (10:20 -0800)
commit4ee4a2e220634f1fd5b36e2255bab7a74b47f677
treee8c3ba7893cebd37f368a7dff70543019800f67a
parent4ae9ad113e9d00b42f0bd264bdf92c73e35fdc58
USB: serial: fix console error reporting

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c