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>
This commit is contained in:
Gustavo F. Padovan
2011-05-17 14:34:52 -03:00
parent 89bc500e41
commit 71ba0e569b
2 changed files with 23 additions and 9 deletions

View File

@@ -289,6 +289,8 @@ struct l2cap_chan {
__u8 state;
atomic_t refcnt;
__le16 psm;
__u16 dcid;
__u16 scid;