]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: call hci_le_conn_failed with hdev lock in hci_le_conn_failed
authorNiels Dossche <dossche.niels@gmail.com>
Wed, 16 Mar 2022 15:33:50 +0000 (16:33 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Mar 2022 16:12:08 +0000 (17:12 +0100)
commite4a71e648cd6b4d6224f3430cdfd5e5e09330c0c
treeff5f33bfe6f7950d45b1bdcf8bfba5c1325f8223
parent4dd1156c060a4171c39c93180c46cbefdc7a6563
Bluetooth: call hci_le_conn_failed with hdev lock in hci_le_conn_failed

hci_le_conn_failed function's documentation says that the caller must
hold hdev->lock. The only callsite that does not hold that lock is
hci_le_conn_failed. The other 3 callsites hold the hdev->lock very
locally. The solution is to hold the lock during the call to
hci_le_conn_failed.

Fixes: 5cd52aa6f1d2 ("Bluetooth: Add directed advertising support through connect()")
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_conn.c