diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-11-08 11:19:54 -0500 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2024-11-12 11:39:12 -0500 |
commit | 7967dc8f797f454d4f4acec15c7df0cdf4801617 (patch) | |
tree | f5be9711a96001883ad90555d2dac5c07bff725f /net/bluetooth | |
parent | 20bbe5b802494444791beaf2c6b9597fcc67ff49 (diff) | |
download | linux-stable-7967dc8f797f454d4f4acec15c7df0cdf4801617.tar.gz linux-stable-7967dc8f797f454d4f4acec15c7df0cdf4801617.tar.bz2 linux-stable-7967dc8f797f454d4f4acec15c7df0cdf4801617.zip |
Bluetooth: hci_core: Fix calling mgmt_device_connected
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 96d097b21d13..0ac354db8177 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3788,8 +3788,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) { |