diff options
| author | 2026-09-22 03:49:28 +0900 | |
|---|---|---|
| committer | 2026-09-23 09:30:50 -0400 | |
| commit | d1ac915fb4184faad1b62148be50f317de7c24b5 (patch) | |
| tree | f021b455ee3c6cba30d06f93dd16212df2968072 /scripts/Makefile.thinlto | |
| parent | Bluetooth: hci_core: Fix inquiry cache timestamps on 64-bit systems (diff) | |
Bluetooth: hci_core: free the HCI ID if naming fails
hci_register_dev() allocates an ID before calling dev_set_name().
If naming fails, it returns without releasing that ID. The device has
not been registered and hdev->id has not been assigned, so the normal
unregister path cannot release it.
Free the allocated ID before returning the naming error.
Fixes: dcda165706b9 ("Bluetooth: hci_core: Fix build warnings")
Reported-by: Changyul Lee <lcy8047@gmail.com>
Assisted-by: LLM
Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com>
Reported-by: Changyul Lee <lcy8047@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
