summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2025-07-04 19:27:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-17 18:35:15 +0200
commitad9d4db5a8acb9e5ab28b08f41408df5a5c2c389 (patch)
tree357f24b34ae21aaef686fa7e55cae136948ae006 /tools
parent37e2911d2ec171f40fb25be978ceebbb3d067212 (diff)
downloadlinux-ad9d4db5a8acb9e5ab28b08f41408df5a5c2c389.tar.gz
linux-ad9d4db5a8acb9e5ab28b08f41408df5a5c2c389.tar.bz2
linux-ad9d4db5a8acb9e5ab28b08f41408df5a5c2c389.zip
pwm: mediatek: Ensure to disable clocks in error path
commit 505b730ede7f5c4083ff212aa955155b5b92e574 upstream. After enabling the clocks each error path must disable the clocks again. One of them failed to do so. Unify the error paths to use goto to make it harder for future changes to add a similar bug. Fixes: 7ca59947b5fc ("pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20250704172728.626815-2-u.kleine-koenig@baylibre.com Cc: stable@vger.kernel.org [ukleinek: backported to 6.6.y] Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions