OSDN Git Service

clk: imx6sx: fix refcount leak in imx6sx_clocks_init()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 26 Dec 2018 13:55:10 +0000 (08:55 -0500)
committerStephen Boyd <sboyd@kernel.org>
Fri, 28 Dec 2018 19:40:25 +0000 (11:40 -0800)
commit1731e14fb30212dd8c1e9f8fc1af061e56498c55
treef2abb0c9a0e085a976f37c5f73b778a1e5722467
parentc9ec1d8fef31b5fc9e90e99f9bd685db5caa7c5e
clk: imx6sx: fix refcount leak in imx6sx_clocks_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>
Fixes: d55135689019 ("ARM: imx: add clock driver for imx6sx")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-imx6sx.c