Re: [PATCH] drm/bridge/panel: Fix runtime warning on panel bridge release

From: Maxime Ripard
Date: Mon Jun 10 2024 - 07:23:13 EST


On Mon, Jun 10, 2024 at 11:27:39AM GMT, Adam Miotk wrote:
> Device managed panel bridge wrappers are created by calling to
> drm_panel_bridge_add_typed() and registering a release handler for
> clean-up when the device gets unbound.
>
> Since the memory for this bridge is also managed and linked to the panel
> device, the release function should not try to free that memory.
> Moreover, the call to devm_kfree() inside drm_panel_bridge_remove() will
> fail in this case and emit a warning because the panel bridge resource
> is no longer on the device resources list (it has been removed from
> there before the call to release handlers).
>
> Signed-off-by: Adam Miotk <adam.miotk@xxxxxxx>

I've added a Fixes tag and applied to drm-misc-fixes, thanks!
Maxime

Attachment: signature.asc
Description: PGP signature