Re: [PATCH v2 2/4] drm/panel: Add refcount support
From: Luca Ceresoli
Date: Fri Mar 28 2025 - 04:49:11 EST
On Thu, 27 Mar 2025 10:55:40 -0400
Anusha Srivatsa <asrivats@xxxxxxxxxx> 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@xxxxxxxxxx>
With the added #include as per my comment on patch 1, you can add:
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com