[PATCH v2 3/5] drm/panel: of_drm_find_panel() return a counted reference
Maxime Ripard
mripard at kernel.org
Fri Jul 17 01:49:45 PDT 2026
On Mon, 13 Jul 2026 13:53:06 +0200, Albert Esteve wrote:
> Callers of of_drm_find_panel() receive a pointer with no reference
> held, creating a window where the panel device can be unregistered
> and freed between the lookup and first use (e.g., drm_panel_prepare()).
>
> Fix the lookup function by acquiring a reference with drm_panel_get()
>
> [ ... ]
Acked-by: Maxime Ripard <mripard at kernel.org>
Thanks!
Maxime
More information about the Linux-rockchip
mailing list