Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexey Khoroshilov and committed by
Stephen Boyd
0b85de7c 681cd4a8

+1
+1
drivers/clk/clk-cdce925.c
··· 703 703 0x12 + (i*CDCE925_OFFSET_PLL), 704 704 0x07, value & 0x07); 705 705 } 706 + of_node_put(np_output); 706 707 } 707 708 708 709 /* Register output clock Y1 */