Message ID | 20220620144853.4074378-1-windhl@126.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | bus/ti-sysc: Fix refcount leak bug | expand |
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;
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(+)