]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/rockchip: vop2: unlock on error path in vop2_crtc_atomic_enable()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 9 May 2022 09:05:05 +0000 (12:05 +0300)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 15 May 2022 19:53:37 +0000 (21:53 +0200)
This error path needs an unlock before returning.

Fixes: 073b253e5f78 ("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
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

index 774d8bee22b1fd9bbef3224ae0e98eef454ce02d..44838ad04c79931935f397f25b45fbfd40327e3e 100644 (file)
@@ -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;
        }