]> Gentwo Git Trees - linux/.git/commit
drm/bridge: get the bridge returned by drm_bridge_chain_get_first_bridge()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 8 Jul 2025 15:48:19 +0000 (17:48 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 22 Jul 2025 11:01:28 +0000 (13:01 +0200)
commit8fa5909400f377351836419223c33f1131f0f7d3
treec1c20d77b68a5ce073c777fa2112ca887a1c064a
parent4d2d28776ae3ad7aa95328d28aff220b0ec6202d
drm/bridge: get the bridge returned by drm_bridge_chain_get_first_bridge()

drm_bridge_chain_get_first_bridge() returns a bridge pointer that the
caller could hold for a long time. Increment the refcount of the returned
bridge and document it must be put by the caller.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250708-drm-bridge-alloc-getput-drm_bridge_chain_get_first_bridge-v9-2-db1ba3df7f58@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
include/drm/drm_bridge.h