diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-05-17 13:34:52 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-13 13:55:33 -0400 |
commit | 71ba0e569bb43ab99a07ccbb514f8b0f732140c3 (patch) | |
tree | 30133049da8d58a97e7231d61af2f56647ff120e /include/net/bluetooth | |
parent | 89bc500e41fc5b48e0573e6b0d927fc97b8951dc (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/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
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 { | |||
289 | 289 | ||
290 | __u8 state; | 290 | __u8 state; |
291 | 291 | ||
292 | atomic_t refcnt; | ||
293 | |||
292 | __le16 psm; | 294 | __le16 psm; |
293 | __u16 dcid; | 295 | __u16 dcid; |
294 | __u16 scid; | 296 | __u16 scid; |