===================================================================== | This is a commit scheduled for the next v2.6.34 longterm release. | | If you see a problem with using this for longterm, please comment.| =====================================================================

commit 1c95ba1e1de7edffc0c4e275e147f1a9eb1f81ae upstream.

A kernel BUG when bluetooth rfcomm connection drop while the associatedserial port is open is sometime triggered.

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