]> git.karo-electronics.de Git - linux-beck.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)
commitc274f6ef1c6665632767d32e4ab912aad839ce27
treefb916689439d10e29c55abc4e0af24e38ec203ec
parent136d5258b2bc4ffae99cb69874a76624c26fbfad
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