]> 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)
commitfe8849fbf14b1ba2c46aba4812634576ce32d930
treef518bce06ccc0d324ff182a2634cdaef6027f2b2
parent91e78a1fbeaf21e78aac79fc459d4239f6f3fb96
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