]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_sync: hold hdev->lock when cleanup hci_conn
authorZhengping Jiang <jiangzp@google.com>
Tue, 23 Aug 2022 17:28:08 +0000 (10:28 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 25 Aug 2022 23:26:19 +0000 (16:26 -0700)
commit92022edcbd5efa52bfdca129301961cfad465a7c
treeaee399c0b7312482b5b5c04d307a573be9bda4d7
parent5cb95bd65d2b2dee3061ef3cafaa9518bec77a04
Bluetooth: hci_sync: hold hdev->lock when cleanup hci_conn

When disconnecting all devices, hci_conn_failed is used to cleanup
hci_conn object when the hci_conn object cannot be aborted.
The function hci_conn_failed requires the caller holds hdev->lock.

Fixes: 6a134df1a806d ("Bluetooth: hci_sync: Cleanup hci_conn if it cannot be aborted")
Signed-off-by: Zhengping Jiang <jiangzp@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c