[PATCH v2 08/16] drm/bridge/lvds-codec: Keep up with refcounting
Anusha Srivatsa
asrivats at redhat.com
Thu Jun 19 12:16:00 PDT 2025
The panel returned by of_drm_find_panel() is for
calling devm_drm_panel_bridge_add_typed and not
anywhere after that.
Put the panel reference accordingly.
Patch added in v2.
Signed-off-by: Anusha Srivatsa <asrivats at redhat.com>
---
drivers/gpu/drm/bridge/lvds-codec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/bridge/lvds-codec.c b/drivers/gpu/drm/bridge/lvds-codec.c
index e6a7147e141b64fc77dfef03a737ee599a0ecd10..72ac427e7b88b884ce07b52212639e518dbe4bec 100644
--- a/drivers/gpu/drm/bridge/lvds-codec.c
+++ b/drivers/gpu/drm/bridge/lvds-codec.c
@@ -154,6 +154,7 @@ static int lvds_codec_probe(struct platform_device *pdev)
lvds_codec->panel_bridge =
devm_drm_panel_bridge_add_typed(dev, panel,
lvds_codec->connector_type);
+ drm_panel_put(panel);
if (IS_ERR(lvds_codec->panel_bridge))
return PTR_ERR(lvds_codec->panel_bridge);
--
2.48.1
More information about the linux-arm-kernel
mailing list