summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/rockchip
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-05-09 12:05:05 +0300
committerHeiko Stuebner <heiko@sntech.de>2022-05-15 22:53:37 +0300
commit98526c5bbe3267d447ddd076b685439e3e1396c6 (patch)
tree443f8641d5d35e8d720b5e475dd1968d81a39451 /drivers/gpu/drm/rockchip
parentde5db71e4c8c35ed5e92006e3064ce9230881ece (diff)
downloadlinux-98526c5bbe3267d447ddd076b685439e3e1396c6.tar.xz
drm/rockchip: vop2: unlock on error path in vop2_crtc_atomic_enable()
This error path needs an unlock before returning. Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/YnjZQRV9lpub2ET8@kili
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
index 774d8bee22b1..44838ad04c79 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
@@ -1524,6 +1524,7 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc,
if (ret < 0) {
drm_err(vop2->drm, "failed to enable dclk for video port%d - %d\n",
vp->id, ret);
+ vop2_unlock(vop2);
return;
}