drm/panfrost: Fix missing clk_disable_unprepare() on error in panfrost_clk_init()
[ Upstream commitf424987059] Fix the missing clk_disable_unprepare() before return from panfrost_clk_init() in the error handling case. Fixes:b681af0bc1("drm: panfrost: add optional bus_clock") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210608143856.4154766-1-weiyongjun1@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1e1423449d
commit
54912723f1
@@ -60,7 +60,8 @@ static int panfrost_clk_init(struct panfrost_device *pfdev)
|
|||||||
if (IS_ERR(pfdev->bus_clock)) {
|
if (IS_ERR(pfdev->bus_clock)) {
|
||||||
dev_err(pfdev->dev, "get bus_clock failed %ld\n",
|
dev_err(pfdev->dev, "get bus_clock failed %ld\n",
|
||||||
PTR_ERR(pfdev->bus_clock));
|
PTR_ERR(pfdev->bus_clock));
|
||||||
return PTR_ERR(pfdev->bus_clock);
|
err = PTR_ERR(pfdev->bus_clock);
|
||||||
|
goto disable_clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pfdev->bus_clock) {
|
if (pfdev->bus_clock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user