Bluetooth: Use kref for l2cap channel reference counting
authorSyam Sidhardhan <s.syam@samsung.com>
Fri, 27 Jul 2012 18:21:21 +0000 (23:51 +0530)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 21 Aug 2012 17:54:41 +0000 (14:54 -0300)
commit144ad33020a0af66fbb188ef3f13ca91c5326a69
tree531a6c241a8e7dd5b5238fadef30e6f01c681006
parentab19516a50b375c11b9fa442954a43454a730950
Bluetooth: Use kref for l2cap channel reference counting

This patch changes the struct l2cap_chan and associated code to use
kref api for object refcounting and freeing.

Suggested-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Jaganath Kanakkassery <jaganath.k@samsung.com>
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c