diff options
author | Peter Hurley | 2013-06-15 15:14:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-07-24 01:43:01 +0200 |
commit | 6a1c0680cf3ba94356ecd58833e1540c93472a57 (patch) | |
tree | d370b0888214bb59049181ac98c567d153263f48 /drivers/tty/n_tty.c | |
parent | n_tty: Remove read_cnt (diff) | |
download | kernel-qcow2-linux-6a1c0680cf3ba94356ecd58833e1540c93472a57.tar.gz kernel-qcow2-linux-6a1c0680cf3ba94356ecd58833e1540c93472a57.tar.xz kernel-qcow2-linux-6a1c0680cf3ba94356ecd58833e1540c93472a57.zip |
tty: Convert termios_mutex to termios_rwsem
termios is commonly accessed unsafely (especially by N_TTY)
because the existing mutex forces exclusive access.
Convert existing usage.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index d159059560e8..ab923bb2b262 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -1539,7 +1539,7 @@ int is_ignored(int sig) * guaranteed that this function will not be re-entered or in progress * when the ldisc is closed. * - * Locking: Caller holds tty->termios_mutex + * Locking: Caller holds tty->termios_rwsem */ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) |