Skip to content

Commit 7967dc8

Browse files
committed
Bluetooth: hci_core: Fix calling mgmt_device_connected
Since 61a939c ("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: bluez/bluez#1014 Fixes: 333b4fd ("Bluetooth: L2CAP: Fix uaf in l2cap_connect") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 20bbe5b commit 7967dc8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/bluetooth/hci_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3788,8 +3788,6 @@ static void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
37883788

37893789
hci_dev_lock(hdev);
37903790
conn = hci_conn_hash_lookup_handle(hdev, handle);
3791-
if (conn && hci_dev_test_flag(hdev, HCI_MGMT))
3792-
mgmt_device_connected(hdev, conn, NULL, 0);
37933791
hci_dev_unlock(hdev);
37943792

37953793
if (conn) {

0 commit comments

Comments
 (0)