From: Philippe Rétornaz Date: Wed, 27 Oct 2010 15:13:21 +0000 (+0200) Subject: tty_ldisc: Fix BUG() on hangup X-Git-Tag: v2.6.37-rc2~24^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c95ba1e1de7edffc0c4e275e147f1a9eb1f81ae;p=pandora-kernel.git 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 Acked-by: Alan Cox Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed