]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sunsab: Don't enable tx if tx stopped
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 2 Sep 2014 21:39:17 +0000 (17:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:22:42 +0000 (16:22 -0700)
commit98f8b83d6a504615f52a095acf92a2bdad985ae0
tree8ae27402b9c4bac86e48597ec823ff119f75c165
parent16f404e3666718917b2541503240cf8430aa49ff
serial: sunsab: Don't enable tx if tx stopped

The serial core may call the UART driver's start_tx() even if
tx is stopped; the UART driver must verify tx should be enabled
before transmitting.

Reported-by: Sam Ravnborg <sam@ravnborg.org>
cc: David S. Miller <davem@davemloft.net>
cc: <sparclinux@vger.kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sunsab.c