diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-11-05 18:12:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-06 03:24:10 +0100 |
commit | c8483bc9deff9bf9118aaab2e840b973b75cac3e (patch) | |
tree | 4c6af9da2f1b01525014c8680f4d3c8955b54e12 /drivers/tty/tty_io.c | |
parent | tty: Don't hold tty_lock for ldisc release (diff) | |
download | linux-c8483bc9deff9bf9118aaab2e840b973b75cac3e.tar.xz linux-c8483bc9deff9bf9118aaab2e840b973b75cac3e.zip |
tty: Invert tty_lock/ldisc_sem lock order
Dropping the tty lock to acquire the tty->ldisc_sem allows several
race conditions (such as hangup while changing the ldisc) which requires
extra states and testing. The ldisc_sem->tty_lock lock order has
not been required since tty buffer ownership was moved to tty_port.
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
0 files changed, 0 insertions, 0 deletions