diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-11-19 00:14:42 +0300 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-22 03:16:30 +0300 |
commit | ff2d367ac33b9278c9516ac1888207dac11d10b0 (patch) | |
tree | 7280d3007f20c2c9921f150ec3a84ca52194176e /net | |
parent | 6bd57416127e92d35e6798925502c84e14a3a966 (diff) | |
download | linux-ff2d367ac33b9278c9516ac1888207dac11d10b0.tar.xz |
[Bluetooth] Check if RFCOMM session is still attached to the TTY
If the RFCOMM session is no longer attached to the TTY device, then it
makes no sense to go through with changing the termios settings.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index b8e3a5f1c8a8..1fb5d42f37ae 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c @@ -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 */ |