summaryrefslogtreecommitdiffstats
path: root/drivers/clk/samsung
diff options
context:
space:
mode:
authorYangtao Li <tiny.windzz@gmail.com>2018-12-26 08:32:15 -0500
committerStephen Boyd <sboyd@kernel.org>2018-12-28 11:38:30 -0800
commitcee82eb9532090cd1dc953e845d71f9b1445c84e (patch)
tree3873631cb9ab77d0028a4e52e0e9126f63dddda8 /drivers/clk/samsung
parent7f9705beeb3759e69165e7aff588f6488ff6c1ac (diff)
downloadblackbird-op-linux-cee82eb9532090cd1dc953e845d71f9b1445c84e.tar.gz
blackbird-op-linux-cee82eb9532090cd1dc953e845d71f9b1445c84e.zip
clk: samsung: exynos4: fix refcount leak in exynos4_get_xom()
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: e062b571777f ("clk: exynos4: register clocks using common clock framework") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/samsung')
-rw-r--r--drivers/clk/samsung/clk-exynos4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c
index 59d4d46667ce..54066e6508d3 100644
--- a/drivers/clk/samsung/clk-exynos4.c
+++ b/drivers/clk/samsung/clk-exynos4.c
@@ -1028,6 +1028,7 @@ static unsigned long __init exynos4_get_xom(void)
xom = readl(chipid_base + 8);
iounmap(chipid_base);
+ of_node_put(np);
}
return xom;
OpenPOWER on IntegriCloud