]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: hci_sync: hold hdev->lock for hci_conn_params lookups
authorPauli Virtanen <pav@iki.fi>
Fri, 10 Jul 2026 08:23:43 +0000 (11:23 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 13 Jul 2026 14:09:31 +0000 (10:09 -0400)
commitc363202ec841df36421ec280eea3d5f94f556143
tree6df8d4f089049cef8ee8ccf610378091f397cb17
parentda55f570191d5d72f10c607a7043b947eb05ea46
Bluetooth: hci_sync: hold hdev->lock for hci_conn_params lookups

hci_conn_params_lookup requires hdev->lock be held, otherwise the list
iteration or param access is not safe.

Hold hdev->lock for params lookups in hci_sync.

Fixes: c530569adc19 ("Bluetooth: hci_core: Introduce HCI_CONN_FLAG_PAST")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c