[PW_SID:1080113] Bluetooth: hci_sync: fix hci_conn_del usage in hci_le_create_conn_sync#67
[PW_SID:1080113] Bluetooth: hci_sync: fix hci_conn_del usage in hci_le_create_conn_sync#67BluezTestBot wants to merge 1 commit intoworkflowfrom
Conversation
Callers to hci_conn_del() shall hold hdev->lock and have informed socket layer of teardown if needed. This was not done in hci_le_create_conn_sync(); it also appears possible to reach here via l2cap_chan_connect() with associated socket. Fix by taking lock, checking conn validity, and adding hci_connect_cfm. Fixes: 8e8b92e ("Bluetooth: hci_sync: Add hci_le_create_conn_sync") Signed-off-by: Pauli Virtanen <pav@iki.fi>
|
CheckPatch |
|
GitLint |
|
SubjectPrefix |
|
BuildKernel |
|
CheckAllWarning |
|
CheckSparse |
|
BuildKernel32 |
|
TestRunnerSetup |
|
TestRunner_l2cap-tester |
|
TestRunner_iso-tester |
|
TestRunner_bnep-tester |
|
TestRunner_mgmt-tester |
|
TestRunner_rfcomm-tester |
|
TestRunner_sco-tester |
|
TestRunner_ioctl-tester |
|
TestRunner_mesh-tester |
|
TestRunner_smp-tester |
|
TestRunner_userchan-tester |
|
TestRunner_6lowpan-tester |
|
IncrementalBuild |
Callers to hci_conn_del() shall hold hdev->lock and have informed socket
layer of teardown if needed. This was not done in
hci_le_create_conn_sync(); it also appears possible to reach here via
l2cap_chan_connect() with associated socket.
Fix by taking lock, checking conn validity, and adding hci_connect_cfm.
Fixes: 8e8b92e ("Bluetooth: hci_sync: Add hci_le_create_conn_sync")
Signed-off-by: Pauli Virtanen pav@iki.fi
net/bluetooth/hci_sync.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)