Commit 6edb1718 authored by Pauli Virtanen's avatar Pauli Virtanen Committed by Greg Kroah-Hartman
Browse files

Bluetooth: hci_core: fix list_for_each_entry_rcu usage



[ Upstream commit 308a3a8c ]

Releasing + re-acquiring RCU lock inside list_for_each_entry_rcu() loop
body is not correct.

Fix by taking the update-side hdev->lock instead.

Fixes: c7eaf80b ("Bluetooth: Fix hci_link_tx_to RCU lock usage")
Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 21f07126
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment