Bluetooth: Remove hci_conn_hold/drop from hci_chan
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Aug 2014 17:33:27 +0000 (20:33 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:54 +0000 (19:07 +0200)
commitbcbb655a180344d8004ede669228992bff1921e4
tree10abc4c141ed33a522ee725b8d492178e0c9214d
parentf94b665dcf15324f5ac8aa639e47be0829b6409d
Bluetooth: Remove hci_conn_hold/drop from hci_chan

We can't have hci_chan contribute to the "active" reference counting of
the hci_conn since otherwise the connection would never get dropped when
there are no more users (since hci_chan would be counted as a user).
This patch removes hold() when creating the hci_chan and drop() when
destroying it.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c