CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Liam Beguin <[email protected]> TO: [email protected] TO: [email protected] TO: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected]
From: kernel test robot <[email protected]> drivers/clk/clk-lmk04832.c:1155:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 1162. Semantic patch information: False positives can be due to function calls within the for_each loop that may encapsulate an of_node_put. Generated by: scripts/coccinelle/iterators/for_each_child.cocci CC: Liam Beguin <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> --- url: https://github.com/0day-ci/linux/commits/Liam-Beguin/add-support-for-the-lmk04832/20210407-085408 base: f40ddce88593482919761f74910f42f4b84c004b :::::: branch date: 9 hours ago :::::: commit date: 9 hours ago Please take the patch only if it's a positive warning. Thanks! clk-lmk04832.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/clk/clk-lmk04832.c +++ b/drivers/clk/clk-lmk04832.c @@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_dev if (ret) { dev_err(lmk->dev, "missing reg property in child: %s\n", child->full_name); + of_node_put(child); goto err_disable_oscin; } _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
