[PATCH 1/5] drm/panel: have drm_panel_add/remove manage a list reference
Maxime Ripard
mripard at kernel.org
Fri Jun 26 05:47:28 PDT 2026
On Fri, 26 Jun 2026 14:03:23 +0200, Albert Esteve wrote:
> The global panel_list holds raw pointers to drm_panel objects.
> Nothing prevents a panel from being freed while it is still linked
> in the list: if a driver's probe calls drm_panel_add() and then
> fails at a later step, panel->list remains in panel_list. Any
> subsequent call to of_drm_find_panel() that iterates the list will
>
> [ ... ]
Reviewed-by: Maxime Ripard <mripard at kernel.org>
Thanks!
Maxime
More information about the Linux-rockchip
mailing list