summaryrefslogtreecommitdiff
path: root/net/bluetooth/af_bluetooth.c
diff options
context:
space:
mode:
authorZiyang Xuan <william.xuanziyang@huawei.com>2023-10-11 17:57:31 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-10-23 11:03:20 -0700
commit181a42edddf51d5d9697ecdf365d72ebeab5afb0 (patch)
tree28decb9a44b9deb3a8c513faf1d2bef8eabc871c /net/bluetooth/af_bluetooth.c
parent624820f7c8826dd010e8b1963303c145f99816e9 (diff)
Bluetooth: Make handle of hci_conn be unique
The handle of new hci_conn is always HCI_CONN_HANDLE_MAX + 1 if the handle of the first hci_conn entry in hci_dev->conn_hash->list is not HCI_CONN_HANDLE_MAX + 1. Use ida to manage the allocation of hci_conn->handle to make it be unique. Fixes: 9f78191cc9f1 ("Bluetooth: hci_conn: Always allocate unique handles") Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
0 files changed, 0 insertions, 0 deletions