Alan Cox c0253eec2a tty: Fix race in the flush for some ldiscs
If you issue an ioctl to flush a tty as the line discipline is changing or
otherwise unplugged you can get a crash. The bug is very old but the rest
of the BKL lock dropping and some very "good" luck on Ingo's part caught
an example.

Use the correct ldisc_ref form so that we wait for the ldisc change to
complete and then flush

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-15 12:48:35 -08:00
..
2009-01-08 16:29:41 +00:00
2009-01-13 10:35:01 -05:00
2009-01-06 15:59:30 -08:00
2009-01-08 08:31:15 -08:00
2009-01-14 19:19:04 +01:00
2009-01-11 01:34:25 +01:00
2009-01-11 18:36:30 +01:00
2009-01-09 12:37:15 -08:00
2009-01-09 03:39:43 -05:00
2009-01-11 01:34:25 +01:00
2009-01-11 01:34:24 +01:00
2009-01-11 00:05:16 -08:00