Re: [PATCH v3 4/5] drm/verisilicon: check old state CRTC in plane atomic_disable
From: Javier Martinez Canillas
Date: Tue Dec 01 2026 - 09:00:50 EST
Icenowy Zheng <zhengxingda@xxxxxxxxxxx> writes:
> As atomic_update hooks of both planes would utilize atomic_disable
> functions to disable the plane when it's set to invisible (even when
> technically enabled), the atomic_disable functions need to check whether
> the plane is really enabled before.
>
> Add such a check to prevent NULL dereference.
>
> Fixes: dbf21777caa8 ("drm: verisilicon: add a driver for Verisilicon display controllers")
> Fixes: 8c4ae2189125 ("drm: verisilicon: add support for cursor planes")
> Signed-off-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> ---
Acked-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat