From: Andrei Emeltchenko Date: Thu, 31 May 2012 08:01:37 +0000 (+0300) Subject: Bluetooth: A2MP: Do not reference hci_conn X-Git-Tag: v3.6-rc1~125^2~57^2~290^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cabbfdad3150e0083a64c951701c970ef970c77;p=pandora-kernel.git Bluetooth: A2MP: Do not reference hci_conn Make A2MP channel special channel which do not reference hci_conn. This prevents from keeping ACL connection open when all L2CAP channels got closed. hci_conn_hold and hci_conn_put are not reference counts on the hci_conn structure in the typical way. They are reference counts for the ACL. When you do the last hci_conn_put, the ACL is disconnected after a timeout. Reported-by: Mat Martineau Signed-off-by: Andrei Emeltchenko Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed