summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSang-Hoon Choi <csh0052@gmail.com>2026-09-22 03:49:28 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-09-23 09:30:50 -0400
commitd1ac915fb4184faad1b62148be50f317de7c24b5 (patch)
treef021b455ee3c6cba30d06f93dd16212df2968072 /tools/perf/scripts/python/bin/stackcollapse-report
parent74847177eca5638827ab74cdf77f0b10fc40ca6c (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 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions