diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-06-15 17:21:53 +0000 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2021-08-22 01:56:35 +0900 |
commit | b74a29fac6de62f39b594e8f545b3a26db7edb5e (patch) | |
tree | 50c12947f14855029ffd23dfde03351e498da147 /drivers/gpu/drm/exynos | |
parent | 397ab98e2d69cede84444a28eab77a171983d14e (diff) | |
download | linux-b74a29fac6de62f39b594e8f545b3a26db7edb5e.tar.bz2 |
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: 445d3bed75de ("drm/exynos: use pm_runtime_resume_and_get()")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_g2d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index cab4d2c370a7..0ed665501ac4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -897,13 +897,14 @@ static void g2d_runqueue_worker(struct work_struct *work) ret = pm_runtime_resume_and_get(g2d->dev); if (ret < 0) { dev_err(g2d->dev, "failed to enable G2D device.\n"); - return; + goto out; } g2d_dma_start(g2d, g2d->runqueue_node); } } +out: mutex_unlock(&g2d->runqueue_mutex); } |