diff options
| author | Jeremy Dean Clifton <deaner92@yahoo.com> | 2026-11-17 02:33:42 +0000 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-11-17 11:38:54 -0500 |
| commit | 1f150a0bb8a1a2302f6895ac410f0aaaaa63b756 (patch) | |
| tree | 89cb4aac8d0833f77740d54dad9b94cb6d7fc29b /tools/perf/scripts/python | |
| parent | b05fb50e255a3214683ee3f6a9433ea442c0ce04 (diff) | |
Bluetooth: hci_conn: Free the unset handle when adding a connection fails
hci_conn_add_unset() reserves a handle from hdev->unset_handle_ida and
passes it to __hci_conn_add(). When __hci_conn_add() returns an error,
no hci_conn exists, so hci_conn_cleanup() never runs and the handle is
never returned to the IDA. It stays reserved until the device is
released.
The Sashiko AI reviewer found this while reviewing a change
that adds another error return to __hci_conn_add().
Free the handle in hci_conn_add_unset() when __hci_conn_add() fails.
Fixes: 181a42edddf5 ("Bluetooth: Make handle of hci_conn be unique")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Jeremy Dean Clifton <deaner92@yahoo.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
