Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d55841ce authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Stephen Boyd
Browse files

clk: davinci: pll: Add of_node_put() in of_davinci_pll_init()



The variable child in the function of_davinci_pll_init takes the value
of of_get_child_by_name, which gets a node but does not put it. If child
is not put before the function returns it may cause a memory leak. Hence
put child before two return statements.
Issue found with Coccinelle.

Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lkml.kernel.org/r/20190804162824.6338-1-nishkadg.linux@gmail.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 5911dba5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment