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

The bridge returned by drm_bridge_chain_get_first_bridge() is
refcounted. Put it when done. Use a scope-based free action to catch all
the code paths.

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-3-db1ba3df7f58@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/mxsfb/lcdif_kms.c