提交 14bb28b0 编写于 作者: A Archit Taneja 提交者: Rob Clark

drm/msm: dsi host: add missing of_node_put()

Decrement device node refcount if of_get_child_by_name is successfully
called.
Signed-off-by: NArchit Taneja <architt@codeaurora.org>
Signed-off-by: NRob Clark <robdclark@gmail.com>
上级 78b1d470
......@@ -1605,9 +1605,13 @@ int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer)
node = of_get_child_by_name(msm_host->pdev->dev.of_node,
"panel");
if (node) {
if (!of_drm_find_panel(node))
if (!of_drm_find_panel(node)) {
of_node_put(node);
return -EPROBE_DEFER;
}
of_node_put(node);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册