Commit 500ebd0a authored by Niels Dossche's avatar Niels Dossche Committed by Zheng Zengkai
Browse files

Bluetooth: call hci_le_conn_failed with hdev lock in hci_le_conn_failed

stable inclusion
from stable-v5.10.110
commit b441fcdff2ebaab6611cc4f83938f343843d291c
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b441fcdff2ebaab6611cc4f83938f343843d291c



--------------------------------

[ Upstream commit 9fa6b4cd ]

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: 3c857757 ("Bluetooth: Add directed advertising support through connect()")
Signed-off-by: default avatarNiels Dossche <dossche.niels@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 958710a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment