From: Alexey Khoroshilov Date: Tue, 21 Aug 2018 21:05:32 +0000 (+0300) Subject: clk: cdce925: release child device nodes X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~6007^2~13^4~2 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=0b85de7cef013eeaf5cc873f0fd127ccfc2413be;p=linux.git 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 Signed-off-by: Stephen Boyd --- 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 */