OSDN Git Service

clk: armada-370: fix refcount leak in a370_clk_init()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 26 Dec 2018 13:36:58 +0000 (08:36 -0500)
committerStephen Boyd <sboyd@kernel.org>
Fri, 28 Dec 2018 19:42:41 +0000 (11:42 -0800)
commita3c24050bdf70c958a8d98c2823b66ea761e6a31
treeb0e5aad6fbfa515330758640672b2b36afe3947b
parent567177024e0313e4f0dcba7ba10c0732e50e655d
clk: armada-370: fix refcount leak in a370_clk_init()

The of_find_compatible_node() returns a node pointer with refcount
incremented, but there is the lack of use of the of_node_put() when
done. Add the missing of_node_put() to release the refcount.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Fixes: 07ad6836fa21 ("clk: mvebu: armada-370: maintain clock init order")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/armada-370.c