projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b1d47
)
drm/msm: dsi host: add missing of_node_put()
author
Archit Taneja
<architt@codeaurora.org>
Thu, 4 Jun 2015 09:31:57 +0000
(15:01 +0530)
committer
Rob Clark
<robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:22 +0000
(18:27 -0400)
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>
drivers/gpu/drm/msm/dsi/dsi_host.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/dsi/dsi_host.c
b/drivers/gpu/drm/msm/dsi/dsi_host.c
index
c05a55e
..
ef60aef
100644
(file)
--- a/
drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/
drivers/gpu/drm/msm/dsi/dsi_host.c
@@
-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);
}
}
}