diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-10-18 22:26:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-23 01:50:53 +0200 |
commit | 7ee00fdb16418dd5078ec73e4a631c278a366501 (patch) | |
tree | 5010d222fb5cc65c8f03d1e96bf2e25b130697f6 /drivers/tty/tty_ldisc.c | |
parent | TTY: move devpts kill to pty (diff) | |
download | linux-7ee00fdb16418dd5078ec73e4a631c278a366501.tar.xz linux-7ee00fdb16418dd5078ec73e4a631c278a366501.zip |
TTY: vt, fix paste_selection ldisc handling
There used to be a single tty_ldisc_ref_wait. But then, when a
big-tty-mutex (BTM) was introduced, it has to be tty_ldisc_ref +
tty_unlock + tty_ldisc_ref_wait + tty_lock. Later, BTM was removed
from that path and tty_ldisc_ref + tty_ldisc_ref_wait remained there.
But it makes no sense now. So leave there only tty_ldisc_ref_wait.
And when we have a reference to an ldisc, actually use it in the loop.
Otherwise it may be racy.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions