]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/rockchip: vop2: add a missing unlock in vop2_crtc_atomic_enable()
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Fri, 19 Jan 2024 19:08:40 +0000 (11:08 -0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 13 Feb 2024 19:33:39 +0000 (20:33 +0100)
Unlock before returning on the error path.

Fixes: 5a028e8f062f ("drm/rockchip: vop2: Add support for rk3588")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240119190841.1619443-1-harshit.m.mogalapalli@oracle.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

index 85b3b4871a1d63bf5a8cb2315a25dfd5ef2b8b70..fdd768bbd487c24b545da7aba2d0d45f63784293 100644 (file)
@@ -1985,8 +1985,10 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc,
                clock = vop2_set_intf_mux(vp, rkencoder->crtc_endpoint_id, polflags);
        }
 
-       if (!clock)
+       if (!clock) {
+               vop2_unlock(vop2);
                return;
+       }
 
        if (vcstate->output_mode == ROCKCHIP_OUT_MODE_AAAA &&
            !(vp_data->feature & VOP2_VP_FEATURE_OUTPUT_10BIT))