mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
drm/probe-helper: 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. 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-5-db1ba3df7f58@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
parent
c26c844390
commit
956f82e529
|
|
@ -119,6 +119,7 @@ drm_mode_validate_pipeline(struct drm_display_mode *mode,
|
|||
*status = drm_bridge_chain_mode_valid(bridge,
|
||||
&connector->display_info,
|
||||
mode);
|
||||
drm_bridge_put(bridge);
|
||||
if (*status != MODE_OK) {
|
||||
/* There is also no point in continuing for crtc check
|
||||
* here. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user