[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240610-gigantic-devious-tuna-e8a4e8@houat>
Date: Mon, 10 Jun 2024 13:23:02 +0200
From: Maxime Ripard <mripard@...nel.org>
To: Adam Miotk <adam.miotk@....com>
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Andrzej Hajda <andrzej.hajda@...el.com>, Neil Armstrong <neil.armstrong@...aro.org>,
Robert Foss <rfoss@...nel.org>, Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Jonas Karlman <jonas@...boo.se>, Jernej Skrabec <jernej.skrabec@...il.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Smitha T Murthy <smitha.tmurthy@....com>, Deepak Pandey <deepak.pandey@....com>
Subject: Re: [PATCH] drm/bridge/panel: Fix runtime warning on panel bridge
release
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@....com>
I've added a Fixes tag and applied to drm-misc-fixes, thanks!
Maxime
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists