diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2023-01-20 10:20:31 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-01-30 16:44:40 -0800 |
commit | 0cbe12694990501be92f997d987925132002dbe5 (patch) | |
tree | cdfb77ec238329f631173087795cf32dc52d015a /tools/perf/scripts/python/syscall-counts.py | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) |
clk: mediatek: mt8192: Correctly unregister and free clocks on failure
If anything fails during probe of the clock controller(s), unregister
(and kfree!) whatever we have previously registered to leave with a
clean state and prevent leaks.
Fixes: 710573dee31b ("clk: mediatek: Add MT8192 basic clocks support")
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: Chen-Yu Tsai <[email protected]>
Reviewed-by: Markus Schneider-Pargmann <[email protected]>
Tested-by: Miles Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Mingming Su <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions