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

index d101f7b3505efadf635e4236a8562a99348d94cd..f224b2db0249d78a10bb5e0b940620e83a05aba3 100755 (executable)
@@ -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;
                }
        }