diff options
author | Jonathan Cameron <[email protected]> | 2024-05-29 14:34:32 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2024-06-28 18:38:27 +0100 |
commit | 47ec9b417ed9b6b8ec2a941cd84d9de62adc358a (patch) | |
tree | 69a0e48d2ddda0f16f8d1e0e572b1c488c081156 /tools/perf/scripts/python/task-analyzer.py | |
parent | fadf231f0a06a6748a7fc4a2c29ac9ef7bca6bfd (diff) |
ACPI: processor: Fix memory leaks in error paths of processor_add()
If acpi_processor_get_info() returned an error, pr and the associated
pr->throttling.shared_cpu_map were leaked.
The unwind code was in the wrong order wrt to setup, relying on
some unwind actions having no affect (clearing variables that were
never set etc). That makes it harder to reason about so reorder
and add appropriate labels to only undo what was actually set up
in the first place.
Acked-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions