From: Mat Martineau Date: Fri, 27 Apr 2012 23:50:50 +0000 (-0700) Subject: Bluetooth: Make better use of l2cap_chan reference counting X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61d6ef3e;p=pandora-kernel.git Bluetooth: Make better use of l2cap_chan reference counting L2CAP sockets contain a pointer to l2cap_chan that needs to be reference counted in order to prevent a possible dangling pointer when the channel is freed. There were a few other cases where an l2cap_chan pointer on the stack was dereferenced after a call to l2cap_chan_del. Those pointers are also now reference counted. Signed-off-by: Mat Martineau Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed