]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: l2cap: Don't double set the HCI_CONN_MGMT_CONNECTED bit
authorArchie Pusaka <apusaka@chromium.org>
Thu, 4 Apr 2024 10:50:23 +0000 (18:50 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 10 Apr 2024 19:10:16 +0000 (15:10 -0400)
commit600b0bbe73d3a9a264694da0e4c2c0800309141e
treeab8608e88db184e3b278a396073c565b42e98032
parentb2186061d6043d6345a97100460363e990af0d46
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: eeda1bf97bb5 ("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>
net/bluetooth/l2cap_core.c