Bluetooth: Fix calling hci_conn_put too early
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Dec 2014 19:45:44 +0000 (21:45 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Dec 2014 19:57:38 +0000 (20:57 +0100)
commit15013aeb63fb4df7ff809d63246c8398e9703736
tree82efe1e90f240ab487d845eeeeeea06c443bb627
parent417287de88bfbb724bab2f50782395d2606b28e1
Bluetooth: Fix calling hci_conn_put too early

The pairing_complete() function relies on a hci_conn reference to be
able to access the hci_conn object. It should therefore only release
this reference once it's done accessing the object, i.e. at the end of
the function.

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