Commit 84038c1d authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Marcel Holtmann

[Bluetooth] Fix connection hash bug

When calling hci_conn_hash_del() the acl_num value is incremented,
but it must be decremented.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7bc2444c
......@@ -231,7 +231,7 @@ static inline void hci_conn_hash_del(struct hci_dev *hdev, struct hci_conn *c)
struct hci_conn_hash *h = &hdev->conn_hash;
list_del(&c->list);
if (c->type == ACL_LINK)
h->acl_num++;
h->acl_num--;
else
h->sco_num--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment