Skip to content

Commit

Permalink
clk: cdce925: release child device nodes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
khoroshilov authored and bebarino committed Aug 30, 2018
1 parent 681cd4a commit 0b85de7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clk/clk-cdce925.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0b85de7

Please sign in to comment.