]> 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)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:08 +0000 (23:40 +0100)
commitd509e248785859c7cd3d5b6947b92c6b1159f075
tree2f4473561296489e48c354bea483e16aa6c65189
parent7a4239f949215adc0f5271cb176c48aafbe9a71e
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: Andi Kleen <ak@linux.intel.com>
drivers/char/tty_ldisc.c