diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-05-17 17:34:52 (GMT) |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-13 17:55:33 (GMT) |
commit | 71ba0e569bb43ab99a07ccbb514f8b0f732140c3 (patch) | |
tree | 30133049da8d58a97e7231d61af2f56647ff120e /include/net/bluetooth | |
parent | 89bc500e41fc5b48e0573e6b0d927fc97b8951dc (diff) | |
download | linux-fsl-qoriq-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/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 68c8724..b3d953b 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; |