]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Access termios values safely
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:24 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:43:01 +0000 (16:43 -0700)
commit2788cbc888d46e601989d2908d2fdd5c13edb866
tree98adf60bbc522b1c81060cea2fd6b5318a45272d
parent82de1a5584d28cc8b131f63399b6573bb9e1969f
n_tty: Access termios values safely

Use termios_rwsem to guarantee safe access to the termios values.
This is particularly important for N_TTY as changing certain termios
settings alters the mode of operation.

termios_rwsem must be dropped across throttle/unthrottle since
those functions claim the termios_rwsem exclusively (to guarantee
safe access to the termios and for mutual exclusion).

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