Bluetooth: Add refcnt to struct l2cap_chan
authorGustavo F. Padovan <padovan@profusion.mobi>
Tue, 17 May 2011 17:34:52 +0000 (14:34 -0300)
committerJaikumar Ganesh <jaikumar@google.com>
Mon, 11 Jul 2011 18:59:19 +0000 (11:59 -0700)
commit4a6aa524c95b91ae13ae6857fb21938695ea94fa
tree277cc5928e9d33dd583acb53efe3fc46a0470fb1
parentf1b394acd99a6e2919e2c61481abf0a12804a143
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