Bluetooth: Fix refcount balance for hci connection
authorVille Tervo <ville.tervo@nokia.com>
Thu, 7 Apr 2011 11:59:50 +0000 (14:59 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 18 Apr 2011 23:11:45 +0000 (20:11 -0300)
commit7a74aeb022b34a8fa8ef00545e66cf0568b5ddf6
tree82a938a29207cdc7908c450b9a907dad00b316c9
parent332704a51498a7e29aa92c19dc03f11f80b71bfe
Bluetooth: Fix refcount balance for hci connection

hci_io_capa_reply_evt() holds reference for hciconnection. It's useless since
hci_io_capa_request_evt()/hci_simple_pair_complete_evt() already protects the
connection. In addition it leaves connection open after failed SSP pairing.

Signed-off-by: Ville Tervo <ville.tervo@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_event.c