From: Jaganath Kanakkassery Date: Fri, 13 Jul 2012 12:47:55 +0000 (+0530) Subject: Bluetooth: Free the l2cap channel list only when refcount is zero X-Git-Tag: v3.7-rc1~70^2~42^2~37^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af66c691f4e5c2db9bb00793669a548e9db1974;p=pandora-kernel.git Bluetooth: Free the l2cap channel list only when refcount is zero Move the l2cap channel list chan->global_l under the refcnt protection and free it based on the refcnt. Signed-off-by: Jaganath Kanakkassery Signed-off-by: Syam Sidhardhan Reviewed-by: Andrei Emeltchenko Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed