Re: [PATCH v2 0/2] drm/bridge: add drm_bridge_clear_and_put()
From: Luca Ceresoli
Date: Fri Mar 20 2026 - 06:22:18 EST
On Tue, 10 Mar 2026 13:13:22 +0100, Luca Ceresoli wrote:
> This small series introduces drm_bridge_clear_and_put(), to give a easy and
> safe way to put a bridge reference and clear the pointer without leaving a
> possible use-after-free window.
>
> This is part of the work to support hotplug of DRM bridges. The grand plan
> was discussed in [0].
>
> [...]
Applied, thanks!
[1/2] drm/bridge: add drm_bridge_clear_and_put()
commit: 8f3c83720555ffa96799896f2a0bb985a03a89f4
[2/2] drm/bridge: samsung-dsim: use drm_bridge_clear_and_put() to put the next bridge
commit: fbef867cf6614178bc6afd15ee15f85cddf19eab
Best regards,
--
Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>