]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/bluetooth/rfcomm/tty.c
[Bluetooth] Check if RFCOMM session is still attached to the TTY
[linux-2.6-omap-h63xx.git] / net / bluetooth / rfcomm / tty.c
index b8e3a5f1c8a80683d5806662cc7f55c46a656bee..1fb5d42f37ae959c05dc92df929924250eeca90a 100644 (file)
@@ -765,7 +765,7 @@ static void rfcomm_tty_set_termios(struct tty_struct *tty, struct termios *old)
 
        BT_DBG("tty %p termios %p", tty, old);
 
-       if (!dev)
+       if (!dev || !dev->dlc || !dev->dlc->session)
                return;
 
        /* Handle turning off CRTSCTS */