summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-05-17 21:34:52 +0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-13 21:55:33 +0400
commit71ba0e569bb43ab99a07ccbb514f8b0f732140c3 (patch)
tree30133049da8d58a97e7231d61af2f56647ff120e /include/net
parent89bc500e41fc5b48e0573e6b0d927fc97b8951dc (diff)
downloadlinux-71ba0e569bb43ab99a07ccbb514f8b0f732140c3.tar.xz
Bluetooth: Add refcnt to struct l2cap_chan
struct l2cap_chan has now its own refcnt that is compatible with the socket refcnt, i.e., we won't see sk_refcnt = 0 and chan->refcnt > 0. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 68c87244eafc..b3d953b5f399 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -289,6 +289,8 @@ struct l2cap_chan {
__u8 state;
+ atomic_t refcnt;
+
__le16 psm;
__u16 dcid;
__u16 scid;