projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfca789
)
gpu: ipu-v3: common: Add of_node_put() for reference returned by of_graph_get_port_by...
author
Liang He
<windhl@126.com>
Wed, 20 Jul 2022 15:22:27 +0000
(23:22 +0800)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Fri, 16 Dec 2022 17:40:29 +0000
(18:40 +0100)
In ipu_add_client_devices(), we need to call of_node_put() for
reference returned by of_graph_get_port_by_id() in fail path.
Fixes: 17e052175039 ("gpu: ipu-v3: Do not bail out on missing optional port nodes")
Signed-off-by: Liang He <windhl@126.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link:
https://lore.kernel.org/r/20220720152227.1288413-1-windhl@126.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link:
https://patchwork.freedesktop.org/patch/msgid/20220720152227.1288413-1-windhl@126.com
drivers/gpu/ipu-v3/ipu-common.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ipu-v3/ipu-common.c
b/drivers/gpu/ipu-v3/ipu-common.c
index 118318513e2d2a747c313a2e7d89bb485a1ac9f7..c35eac1116f5f8a7945bd85f16f40e7fbb83af83 100644
(file)
--- a/
drivers/gpu/ipu-v3/ipu-common.c
+++ b/
drivers/gpu/ipu-v3/ipu-common.c
@@
-1165,6
+1165,7
@@
static int ipu_add_client_devices(struct ipu_soc *ipu, unsigned long ipu_base)
pdev = platform_device_alloc(reg->name, id++);
if (!pdev) {
ret = -ENOMEM;
+ of_node_put(of_node);
goto err_register;
}