]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Bluetooth: hci_core: Fix calling mgmt_device_connected
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 8 Nov 2024 16:19:54 +0000 (11:19 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:40:35 +0000 (15:40 -0500)
Since 61a939c68ee0 ("Bluetooth: Queue incoming ACL data until
BT_CONNECTED state is reached") there is no long the need to call
mgmt_device_connected as ACL data will be queued until BT_CONNECTED
state.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=219458
Link: https://github.com/bluez/bluez/issues/1014
Fixes: 333b4fd11e89 ("Bluetooth: L2CAP: Fix uaf in l2cap_connect")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c

index f6cff34a85421c4e9f1593a90abd0802fab3598a..f9e19f9cb5a386680bc8f966a2762467862998f0 100644 (file)
@@ -3792,8 +3792,6 @@ static void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
 
        hci_dev_lock(hdev);
        conn = hci_conn_hash_lookup_handle(hdev, handle);
-       if (conn && hci_dev_test_flag(hdev, HCI_MGMT))
-               mgmt_device_connected(hdev, conn, NULL, 0);
        hci_dev_unlock(hdev);
 
        if (conn) {