WSL2-Linux-Kernel/drivers/tty/vt
Jiri Slaby 7ee00fdb16 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>
2012-10-22 16:50:53 -07:00
..
.gitignore TTY: move .gitignore from drivers/char/ to drivers/tty/vt/ 2010-11-05 22:18:23 -07:00
Makefile
consolemap.c vt: push the tty_lock down into the map handling 2012-04-24 16:14:14 -07:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c vt: fix the keyboard/led locking 2012-07-17 09:13:37 -07:00
selection.c TTY: vt, fix paste_selection ldisc handling 2012-10-22 16:50:53 -07:00
vc_screen.c vt: push down the tty lock so we can see what is left to tackle 2012-03-08 11:10:27 -08:00
vt.c KGDB/KDB fixes and cleanups 2012-10-13 11:16:58 +09:00
vt_ioctl.c vt: fix race in vt_waitactive() 2012-07-26 13:37:02 -07:00