]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: get the bridge returned by drm_bridge_get_next_bridge()
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 1 Aug 2025 17:05:29 +0000 (19:05 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 16 Sep 2025 13:22:41 +0000 (15:22 +0200)
commit61aa4f7a600871f9ad96a0ad355b483b0ac4b67d
treeb2fadb4b198de208bf375be595a09fa23309baaa
parent8e1e17416c8bd4ab8b03602828faa01fa212eec1
drm/bridge: get the bridge returned by drm_bridge_get_next_bridge()

drm_bridge_get_next_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/20250801-drm-bridge-alloc-getput-drm_bridge_get_next_bridge-v2-7-888912b0be13@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
include/drm/drm_bridge.h