aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-05-17 14:34:52 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-06-13 14:55:33 -0300
commit71ba0e569bb43ab99a07ccbb514f8b0f732140c3 (patch)
tree30133049da8d58a97e7231d61af2f56647ff120e /include/net/bluetooth/l2cap.h
parentBluetooth: Add state tracking to struct l2cap_chan (diff)
downloadlinux-dev-71ba0e569bb43ab99a07ccbb514f8b0f732140c3.tar.xz
linux-dev-71ba0e569bb43ab99a07ccbb514f8b0f732140c3.zip
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/bluetooth/l2cap.h')
-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;