bus/ti-sysc: Fix refcount leak bug
PATCH 1/1 bus/ti-sysc: Fix refcount leak bug
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 <[email protected]>
--- drivers/bus/ti-sysc.c | 1 + 1 file changed, 1 insertion(+)
drivers/bus/ti-sysc.c +1 -0
@@ -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 ;
Signature · 1 line
2.25.1