diff options
| author | Peter Hurley <[email protected]> | 2014-11-05 12:12:45 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-11-05 18:24:10 -0800 |
| commit | c8483bc9deff9bf9118aaab2e840b973b75cac3e (patch) | |
| tree | 4c6af9da2f1b01525014c8680f4d3c8955b54e12 /include/linux | |
| parent | 3ee175d9d9f9be0e345f7237ee921e58f68afdd7 (diff) | |
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 <[email protected]>
Signed-off-by: Peter Hurley <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions