]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty_ldisc: Fix BUG() on hangup
authorPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Wed, 27 Oct 2010 15:13:21 +0000 (17:13 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:15:43 +0000 (16:15 -0400)
commit3bddf9fc784ff937f80d475c6b5211560848fa5f
tree2c6b15ec0ac8239761d755c6a973b0670b221e57
parent01a9caf12c3c76f99c33590f7716fcbe8415becb
tty_ldisc: Fix BUG() on hangup

commit 1c95ba1e1de7edffc0c4e275e147f1a9eb1f81ae upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/char/tty_ldisc.c