mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
gpu: ipu-v3: common: Add of_node_put() for reference returned by of_graph_get_port_by_id()
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: 17e0521750
("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
This commit is contained in:
parent
cfca78971b
commit
9afdf98cfd
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue