]> xenbits.xensource.com Git - people/aperard/linux.git/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)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Dec 2023 17:39:10 +0000 (18:39 +0100)
commit45c8034db47842b25a3ab6139d71e13b4e67b9b3
treeb60c9ee9a4ab8497902fcdebb14ed8988ba0fb86
parentbc456b5d93dbfdbd89f2a036f4f3d8026595f9e4
drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()

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
drivers/gpu/drm/tegra/rgb.c