]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Hold termios_rwsem for tcflow(TCIxxx)
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:35 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:36 +0000 (21:19 -0700)
commit69bbeb2a8e7329991c1ed1e7d35cde263522a906
treefb916689439d10e29c55abc4e0af24e38ec203ec
parent0b9336058c26116a67c4ec1f2b6c0f2fda67eecb
tty: Hold termios_rwsem for tcflow(TCIxxx)

While transmitting a START/STOP char for tcflow(TCION/TCIOFF), prevent
a termios change. Otherwise, a garbage in-band flow control char
may be sent, if the termios change overlaps the transmission setup.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_ioctl.c