]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: imx6q: fix refcount leak in imx6q_clocks_init()
authorYangtao Li <tiny.windzz@gmail.com>
Wed, 26 Dec 2018 13:53:00 +0000 (08:53 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit5cfc681f5727f732b069fac209ba48d72bef2a05
tree2ac5611f44908c93623b9daa30c36eac63e73b8c
parent97113ad54ce55e199aad6df46d7a93aa6ba6969d
clk: imx6q: fix refcount leak in imx6q_clocks_init()

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit c9ec1d8fef31b5fc9e90e99f9bd685db5caa7c5e ]

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: 2acd1b6f889c ("ARM: i.MX6: implement clocks using common clock framework")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/clk/imx/clk-imx6q.c