]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/exynos/exynos7_drm_decon: free resources when clk_set_parent() failed.
authorJian Zhang <zhangjian210@huawei.com>
Tue, 12 Jul 2022 04:56:11 +0000 (13:56 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:56:23 +0000 (11:56 +0200)
commite39430be9ad81c0efe74085d5a5b5b512dded5f9
tree3095c8b664b84b909bc83d3a23064e5b3afdef58
parent046a9aef6ab41c1d6f4872b60869dbdfc24a7ff4
drm/exynos/exynos7_drm_decon: free resources when clk_set_parent() failed.

BugLink: https://bugs.launchpad.net/bugs/1990162
[ Upstream commit 48b927770f8ad3f8cf4a024a552abf272af9f592 ]

In exynos7_decon_resume, When it fails, we must use clk_disable_unprepare()
to free resource that have been used.

Fixes: 6f83d20838c09 ("drm/exynos: use DRM_DEV_ERROR to print out error
message")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jian Zhang <zhangjian210@huawei.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/exynos/exynos7_drm_decon.c