diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-09-18 20:38:58 +0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-28 17:36:51 +0100 |
| commit | 7c54781e6e60681af8d0858148d613becb582328 (patch) | |
| tree | fe2396890df0d94f24aba98e8e6ac996153b8552 /tools/perf/scripts/python/stackcollapse.py | |
| parent | e8c263e0ef957fd8286e299b2be9266b902cec16 (diff) | |
ASoC: mediatek: mt8192: fix AFE clock error handling
If a clock operation fails in mt8192_afe_enable_clock(), the function
returns immediately via the EXIT label without disabling the clocks
that were successfully enabled earlier in the sequence. This leaves
unneeded clocks running and causes a resource leak.
Properly unwind clocks enabled before an error by jumping to appropriate
cleanup labels on failure.
Fixes: 125ab5d588b0 ("ASoC: mediatek: mt8192: add platform driver")
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Link: https://patch.msgid.link/20260918133912.133799-3-phucduc.bui@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
