aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2018-08-21 17:05:32 -0400
committerStephen Boyd <sboyd@kernel.org>2018-08-30 18:19:16 -0400
commit0b85de7cef013eeaf5cc873f0fd127ccfc2413be (patch)
treedd639645ba54d3e66ce2fdbb52382a0dfecb3af5
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>
-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,
703 0x12 + (i*CDCE925_OFFSET_PLL), 703 0x12 + (i*CDCE925_OFFSET_PLL),
704 0x07, value & 0x07); 704 0x07, value & 0x07);
705 } 705 }
706 of_node_put(np_output);
706 } 707 }
707 708
708 /* Register output clock Y1 */ 709 /* Register output clock Y1 */