]> Git Repo - linux.git/commit
drm/rockchip: vop: Fix a dereferenced before check warning
authorAndy Yan <[email protected]>
Mon, 21 Oct 2024 07:28:06 +0000 (15:28 +0800)
committerHeiko Stuebner <[email protected]>
Sat, 9 Nov 2024 22:57:32 +0000 (23:57 +0100)
commitab1c793f457f740ab7108cc0b1340a402dbf484d
treebe39554008f4e3c585aed02a52d29436851f63e7
parentf432a1621f049bb207e78363d9d0e3c6fa2da5db
drm/rockchip: vop: Fix a dereferenced before check warning

The 'state' can't be NULL, we should check crtc_state.

Fix warning:
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1096
vop_plane_atomic_async_check() warn: variable dereferenced before check
'state' (see line 1077)

Fixes: 5ddb0bd4ddc3 ("drm/atomic: Pass the full state to planes async atomic check and update")
Signed-off-by: Andy Yan <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
This page took 0.05013 seconds and 4 git commands to generate.