aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-14 12:51:42 -0800
committerDavid S. Miller <davem@davemloft.net>2011-02-14 12:51:42 -0800
commit8bc26a008f61eac5631701cbd65f88c015a63280 (patch)
treec85eb9e5a14b406a4dd6625c57029ec266e7dc80 /net/bluetooth/l2cap.c
parentnet/can/softing: make CAN_SOFTING_CS depend on CAN_SOFTING (diff)
parentmac80211: add missing locking in ieee80211_reconfig (diff)
downloadlinux-dev-8bc26a008f61eac5631701cbd65f88c015a63280.tar.xz
linux-dev-8bc26a008f61eac5631701cbd65f88c015a63280.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/bluetooth/l2cap.c')
-rw-r--r--net/bluetooth/l2cap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 7550abb0c96a..675614e38e14 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -859,6 +859,7 @@ static void __l2cap_sock_close(struct sock *sk, int reason)
result = L2CAP_CR_SEC_BLOCK;
else
result = L2CAP_CR_BAD_PSM;
+ sk->sk_state = BT_DISCONN;
rsp.scid = cpu_to_le16(l2cap_pi(sk)->dcid);
rsp.dcid = cpu_to_le16(l2cap_pi(sk)->scid);