[PATCH v2 2/4] drm/panel: Add refcount support

Luca Ceresoli luca.ceresoli at bootlin.com
Fri Mar 28 08:48:35 UTC 2025


On Thu, 27 Mar 2025 10:55:40 -0400
Anusha Srivatsa <asrivats at redhat.com> wrote:

> Allocate panel via reference counting. Add _get() and _put() helper
> functions to ensure panel allocations are refcounted. Avoid use after
> free by ensuring panel pointer is valid and can be usable till the last
> reference is put.
> 
> v2: Export drm_panel_put/get() (Maxime)
> - Change commit log with better workding (Luca, Maxime)
> - Change drm_panel_put() to return void (Luca)
> - Code Cleanups - add return in documentation, replace bridge to
> panel (Luca)
> 
> Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>

With the added #include as per my comment on patch 1, you can add:

 Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the dri-devel mailing list