android_kernel_xiaomi_sm8450/drivers/tty
Philippe Rétornaz 1c95ba1e1d tty_ldisc: Fix BUG() on hangup
A kernel BUG when bluetooth rfcomm connection drop while the associated
serial port is open is sometime triggered.

It seems that the line discipline can disappear between the
tty_ldisc_put and tty_ldisc_get. This patch fall back to the N_TTY line
discipline if the previous discipline is not available anymore.

Signed-off-by: Philippe Retornaz <philippe.retornaz@epfl.ch>
Acked-by: Alan Cox <alan@linux.intel.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-09 15:05:50 -08:00
..
vt TTY: move .gitignore from drivers/char/ to drivers/tty/vt/ 2010-11-05 22:18:23 -07:00
Makefile TTY: create drivers/tty/vt and move the vt code there 2010-11-05 08:16:52 -07:00
n_gsm.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
n_hdlc.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
n_r3964.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
n_tty.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
pty.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
sysrq.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_audit.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_buffer.c tty: prevent DOS in the flush_to_ldisc 2010-11-09 15:02:02 -08:00
tty_io.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_ioctl.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_ldisc.c tty_ldisc: Fix BUG() on hangup 2010-11-09 15:05:50 -08:00
tty_mutex.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00
tty_port.c TTY: create drivers/tty and move the tty core files there 2010-11-05 08:10:33 -07:00