]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: MGMT: Fix holding hci_conn reference while command is queued
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 21 Jul 2022 22:56:28 +0000 (15:56 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 18:02:58 +0000 (11:02 -0700)
commitf110961ec3e1e39551903afd7bb7bcc4df4ddcae
treef518bce06ccc0d324ff182a2634cdaef6027f2b2
parentba721ab9aad30299e8980897bb39499a4742ee2c
Bluetooth: MGMT: Fix holding hci_conn reference while command is queued

This removes the use of hci_conn_hold from Get Conn Info and Get Clock
Info since the callback can just do a lookup by address using the cmd
data and only then set cmd->user_data to pass to the complete callback.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c