summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-cdce925.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2018-08-22 00:05:32 +0300
committerStephen Boyd <sboyd@kernel.org>2018-08-30 15:19:16 -0700
commit0b85de7cef013eeaf5cc873f0fd127ccfc2413be (patch)
treedd639645ba54d3e66ce2fdbb52382a0dfecb3af5 /drivers/clk/clk-cdce925.c
parent681cd4a890e394b91b0b5df0d7f6095d3ae83193 (diff)
clk: cdce925: release child device nodes
of_get_child_by_name() returns device node with refcount incremented, but there is no decrement in cdce925_probe(). The patch adds one. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-cdce925.c')
-rw-r--r--drivers/clk/clk-cdce925.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk-cdce925.c b/drivers/clk/clk-cdce925.c
index 0a7e7d5a7506..e9c3ffad4ac3 100644
--- a/drivers/clk/clk-cdce925.c
+++ b/drivers/clk/clk-cdce925.c
@@ -703,6 +703,7 @@ static int cdce925_probe(struct i2c_client *client,
0x12 + (i*CDCE925_OFFSET_PLL),
0x07, value & 0x07);
}
+ of_node_put(np_output);
}
/* Register output clock Y1 */