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: Archit Taneja <architt@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
78b1d470d5
commit
14bb28b0f9
1 changed files with 5 additions and 1 deletions
|
@ -1605,8 +1605,12 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue