Bluetooth: Add refcnt to struct l2cap_chan
authorGustavo F. Padovan <padovan@profusion.mobi>
Tue, 17 May 2011 17:34:52 +0000 (14:34 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 13 Jun 2011 17:55:33 +0000 (14:55 -0300)
commit71ba0e569bb43ab99a07ccbb514f8b0f732140c3
tree30133049da8d58a97e7231d61af2f56647ff120e
parent89bc500e41fc5b48e0573e6b0d927fc97b8951dc
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>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c