summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDiego Fernando Mancera Gomez <diegomancera.dev@gmail.com>2026-09-17 17:59:25 -0600
committerKrzysztof Kozlowski <krzk@kernel.org>2026-09-23 19:57:14 +0200
commita22355280361d2a376a2020059a2bae11e6cea10 (patch)
treeff96af649198740ec13dc51a5a81984753608ce4 /tools/perf/scripts/python
parente3049c9edd4181e5ce4f83bbac4b611d921f45ff (diff)
memory: stm32_omm: fix child clock leak on set_amcr() error path
When the mux is enabled, stm32_omm_configure() enables the two OSPI child clocks via stm32_omm_toggle_child_clock(dev, true); they are meant to stay enabled for the device's lifetime and are disabled again in stm32_omm_remove() and on the devm_of_platform_populate() error path. However, if the subsequent stm32_omm_set_amcr() call fails, the function jumps to the "error:" label which only calls pm_runtime_put_sync_suspend() before returning, leaving the two child clocks enabled. As this happens during probe, the error is propagated and .remove() is never called, so the clock enable references are leaked. devm_clk_bulk_get() only releases the clock handles on unwind, it does not undo clk_prepare_enable(). Disable the child clocks on the set_amcr() error path, mirroring the cleanup already done on the devm_of_platform_populate() failure path. Fixes: 8181d061dcff ("memory: Add STM32 Octo Memory Manager driver") Cc: stable@vger.kernel.org Signed-off-by: Diego Fernando Mancera Gomez <diegomancera.dev@gmail.com> Link: https://patch.msgid.link/20260917235925.44185-1-diegomancera.dev@gmail.com Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions