Skip to content

Commit 600b0bb

Browse files
apusakaVudentz
authored andcommitted
Bluetooth: l2cap: Don't double set the HCI_CONN_MGMT_CONNECTED bit
The bit is set and tested inside mgmt_device_connected(), therefore we must not set it just outside the function. Fixes: eeda1bf ("Bluetooth: hci_event: Fix not indicating new connection for BIG Sync") Signed-off-by: Archie Pusaka <apusaka@chromium.org> Reviewed-by: Manish Mandlik <mmandlik@chromium.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent b218606 commit 600b0bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

net/bluetooth/l2cap_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4054,8 +4054,7 @@ static int l2cap_connect_req(struct l2cap_conn *conn,
40544054
return -EPROTO;
40554055

40564056
hci_dev_lock(hdev);
4057-
if (hci_dev_test_flag(hdev, HCI_MGMT) &&
4058-
!test_and_set_bit(HCI_CONN_MGMT_CONNECTED, &hcon->flags))
4057+
if (hci_dev_test_flag(hdev, HCI_MGMT))
40594058
mgmt_device_connected(hdev, hcon, NULL, 0);
40604059
hci_dev_unlock(hdev);
40614060

0 commit comments

Comments
 (0)