]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: socfpga: fix refcount leak
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 26 Dec 2018 13:29:02 +0000 (08:29 -0500)
committerStephen Boyd <sboyd@kernel.org>
Fri, 28 Dec 2018 19:29:06 +0000 (11:29 -0800)
commit7f9705beeb3759e69165e7aff588f6488ff6c1ac
tree3801028ce2c6635bf53179e1de65da4525b504b0
parent2274d8001fbb5e1942fbcab5ad2eb15553b09ed2
clk: socfpga: fix refcount leak

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>
Fixes: 5343325ff3dd ("clk: socfpga: add a clock driver for the Arria 10 platform")
Fixes: a30d27ed739b ("clk: socfpga: fix clock driver for 3.15")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-pll-a10.c
drivers/clk/socfpga/clk-pll.c