Skip to content

Commit b74a29f

Browse files
Wei Yongjundaeinki
authored andcommitted
drm/exynos: g2d: fix missing unlock on error in g2d_runqueue_worker()
Add the missing unlock before return from function g2d_runqueue_worker() in the error handling case. Fixes: 445d3be ("drm/exynos: use pm_runtime_resume_and_get()") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 397ab98 commit b74a29f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/exynos/exynos_drm_g2d.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,13 +897,14 @@ static void g2d_runqueue_worker(struct work_struct *work)
897897
ret = pm_runtime_resume_and_get(g2d->dev);
898898
if (ret < 0) {
899899
dev_err(g2d->dev, "failed to enable G2D device.\n");
900-
return;
900+
goto out;
901901
}
902902

903903
g2d_dma_start(g2d, g2d->runqueue_node);
904904
}
905905
}
906906

907+
out:
907908
mutex_unlock(&g2d->runqueue_mutex);
908909
}
909910

0 commit comments

Comments
 (0)