]> git.itanic.dy.fi Git - linux-stable/commit
drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 2 Sep 2023 15:22:12 +0000 (17:22 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:16:59 +0000 (18:16 -0400)
commitfa74e4f5d0821829545b9f7034a0e577c205c101
treec24e6c8d9f6660d82fa2a42423138d165fcf844b
parent604d50b9ceb27446dbcc639c09bc563747365bde
drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()

[ Upstream commit 45c8034db47842b25a3ab6139d71e13b4e67b9b3 ]

If clk_get_sys(..., "pll_d2_out0") fails, the clk_get_sys() call must be
undone.

Add the missing clk_put and a new 'put_pll_d_out0' label in the error
handling path, and use it.

Fixes: 0c921b6d4ba0 ("drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/0182895ead4e4730426616b0d9995954c960b634.1693667005.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tegra/rgb.c