Re: [PATCH] drm/panel: Fix a possible null-pointer dereference in jdi_panel_dsi_remove()

From: Neil Armstrong

Date: Tue Jan 13 2026 - 04:06:05 EST


Hi,

On Thu, 18 Dec 2025 20:09:55 +0800, Tuo Li wrote:
> In jdi_panel_dsi_remove(), jdi is explicitly checked, indicating that it
> may be NULL:
>
> if (!jdi)
> mipi_dsi_detach(dsi);
>
> However, when jdi is NULL, the function does not return and continues by
> calling jdi_panel_disable():
>
> [...]

Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)

[1/1] drm/panel: Fix a possible null-pointer dereference in jdi_panel_dsi_remove()
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/95eed73b871111123a8b1d31cb1fce7e902e49ea

--
Neil