summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@arm.com>2026-02-09 12:44:34 +0000
committerSuzuki K Poulose <suzuki.poulose@arm.com>2026-02-25 11:14:44 +0000
commit2f322f0392814a1b704e14927d282f4b2edb9e98 (patch)
tree5352b8d0af28e9a6aeef24a23756fbb44ba6a7c1 /tools/lib/python
parent0289ada4a31661016a0611a41a4886bb958e9985 (diff)
coresight: Get parent device reference after sink ID map allocation
The parent device's reference count is incremented before allocating the sink ID map. If the allocation fails, the reference count is not decremented, preventing proper cleanup. Fix this by incrementing the reference count only after the sink ID map is successfully allocated. Fixes: 5ad628a76176 ("coresight: Use per-sink trace ID maps for Perf sessions") Reviewed-by: James Clark <james.clark@linaro.org> Signed-off-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20260209-arm_coresight_refactor_dev_register-v4-2-62d6042f76f7@arm.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions