]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:30 +0000 (11:19 +0200)
commite2c680fce9854222e535c1746d02c18765b9edd2
tree768c96b610a8f42b35fc7d1f26f0f1006a024825
parent72473db90900da970a16ee50ad23c2c38d107d8c
Bluetooth: l2cap: Don't double set the HCI_CONN_MGMT_CONNECTED bit

[ Upstream commit 600b0bbe73d3a9a264694da0e4c2c0800309141e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/l2cap_core.c