mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
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>
This commit is contained in:
parent
681cd4a890
commit
0b85de7cef
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue