summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-05-17 14:34:52 -0300
committerJaikumar Ganesh <jaikumar@google.com>2011-07-11 11:59:19 -0700
commit4a6aa524c95b91ae13ae6857fb21938695ea94fa (patch)
tree277cc5928e9d33dd583acb53efe3fc46a0470fb1 /include/net
parentf1b394acd99a6e2919e2c61481abf0a12804a143 (diff)
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 68c87244eaf..b3d953b5f39 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;