mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 20:38:12 +00:00
drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()
[ Upstream commit45c8034db4
] 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:0c921b6d4b
("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>
This commit is contained in:
parent
7ec1d3cab9
commit
5c8dc26e31
1 changed files with 3 additions and 1 deletions
|
@ -247,7 +247,7 @@ int tegra_dc_rgb_probe(struct tegra_dc *dc)
|
|||
if (IS_ERR(rgb->pll_d2_out0)) {
|
||||
err = PTR_ERR(rgb->pll_d2_out0);
|
||||
dev_err(dc->dev, "failed to get pll_d2_out0: %d\n", err);
|
||||
goto remove;
|
||||
goto put_pll;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -255,6 +255,8 @@ int tegra_dc_rgb_probe(struct tegra_dc *dc)
|
|||
|
||||
return 0;
|
||||
|
||||
put_pll:
|
||||
clk_put(rgb->pll_d_out0);
|
||||
remove:
|
||||
tegra_output_remove(&rgb->output);
|
||||
return err;
|
||||
|
|
Loading…
Reference in a new issue