projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6856321
)
Revert "Bluetooth: Do not call rfcomm_session_put() due to RFCOMM UA on closed socket."
author
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:40:59 +0000
(22:40 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:40:59 +0000
(22:40 +0800)
This reverts commit
43a3de3be869aa4417817b94b7dde35267951418
.
net/bluetooth/rfcomm/core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/rfcomm/core.c
b/net/bluetooth/rfcomm/core.c
index d101f7b3505efadf635e4236a8562a99348d94cd..f224b2db0249d78a10bb5e0b940620e83a05aba3 100755
(executable)
--- a/
net/bluetooth/rfcomm/core.c
+++ b/
net/bluetooth/rfcomm/core.c
@@
-1147,8
+1147,7
@@
static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
break;
case BT_DISCONN:
- if (s->sock->sk->sk_state != BT_CLOSED)
- rfcomm_session_put(s);
+ rfcomm_session_put(s);
break;
}
}