All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus/ti-sysc: Fix refcount leak bug
@ 2022-06-20 14:48 Liang He
  0 siblings, 0 replies; only message in thread
From: Liang He @ 2022-06-20 14:48 UTC (permalink / raw)
  To: tony, p.zabel; +Cc: windhl, linux-omap

In sysc_init_static_data(), we need a of_node_put() to keep refcount
balance for the of_find_node_by_path().

Signed-off-by: Liang He <windhl@126.com>
---
 drivers/bus/ti-sysc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 9a7d12332fad..d0400fde6637 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -3138,6 +3138,7 @@ static int sysc_init_static_data(struct sysc *ddata)
 		np = of_find_node_by_path("/ocp");
 		WARN_ONCE(np && of_device_is_compatible(np, "simple-bus"),
 			  "ti-sysc: Incomplete old dtb, please update\n");
+		of_node_put(np);
 		break;
 	default:
 		break;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-20 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 14:48 [PATCH] bus/ti-sysc: Fix refcount leak bug Liang He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.