]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:53 +0000 (12:43 -0700)
commit28bda4eca2f7b1677087cc229cedf1a932fcc8fb
tree4e6d33776828e88464a4f68b6a5f19293327e301
parent827136988433fec7a45b3b20b59bdf03e33cf918
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>
drivers/char/tty_ldisc.c