OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd5741
)
[Bluetooth] Check if RFCOMM session is still attached to the TTY
author
Marcel Holtmann
<marcel@holtmann.org>
Sat, 18 Nov 2006 21:14:42 +0000
(22:14 +0100)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 22 Nov 2006 00:16:30 +0000
(16:16 -0800)
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>
net/bluetooth/rfcomm/tty.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/rfcomm/tty.c
b/net/bluetooth/rfcomm/tty.c
index
b8e3a5f
..
1fb5d42
100644
(file)
--- 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 */