Skip to content

Commit 4050957

Browse files
pchelkin91daeinki
authored andcommitted
drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
Do not forget to call clk_disable_unprepare() on the first element of ctx->clocks array. Found by Linux Verification Center (linuxtesting.org). Fixes: 8b7d3ec ("drm/exynos: gsc: Convert driver to IPP v2 core API") Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent 960b537 commit 4050957

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/exynos/exynos_drm_gsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ static int __maybe_unused gsc_runtime_resume(struct device *dev)
13421342
for (i = 0; i < ctx->num_clocks; i++) {
13431343
ret = clk_prepare_enable(ctx->clocks[i]);
13441344
if (ret) {
1345-
while (--i > 0)
1345+
while (--i >= 0)
13461346
clk_disable_unprepare(ctx->clocks[i]);
13471347
return ret;
13481348
}

0 commit comments

Comments
 (0)