clk: fix for_each_child.cocci warnings
PATCH 1/1 clk: fix for_each_child.cocci warnings
From: kernel test robot <[email protected]>
For_each_child_of_node should have of_node_put() before goto.
Generated by: scripts/coccinelle/iterators/for_each_child.cocci
---
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
clk-lmk04832.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/clk-lmk04832.c +1 -0
@@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_devif (ret) {dev_err (lmk->dev,"missing reg property in child: %s\n" , child->full_name); +of_node_put (child); goto err_disable_oscin; }
Stephen Boyd
maintainerQuoting Julia Lawall (2021-04-07 12:02:32)
Quoted 11 lines
From: kernel test robot <[email protected]>
For_each_child_of_nodeshould haveof_node_put()before goto.Generated by:
scripts/coccinelle/iterators/for_each_child.cocciCC Liam Beguin <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by kernel test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
Is this a fix for a patch on the list?
Quoted 19 lines
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 agoclk-lmk04832.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/clk-lmk04832.c +1
-0@@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_devif (ret) {dev_err (lmk->dev,"missing reg property in child: %s\n" , child->full_name); +of_node_put (child); goto err_disable_oscin; }
Hi Stephen,
Quoted 7 lines · Stephen Boyd
Quoting Julia Lawall (2021-04-07 12:02:32)
Quoted 6 lines
From: kernel test robot <[email protected]>
For_each_child_of_nodeshould haveof_node_put()before goto.Generated by:
scripts/coccinelle/iterators/for_each_child.cocci
Quoted 8 lines
Quoted 5 lines
CC Liam Beguin <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by kernel test robot <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
Is this a fix for a patch on the list?
This is a fix for a patch[1] I sent yesterday.
I'll apply and resend.
Thanks,
Liam
Quoted 19 lines
Quoted 19 lines
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 agoclk-lmk04832.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/clk-lmk04832.c +1
-0@@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_devif (ret) {dev_err (lmk->dev,"missing reg property in child: %s\n" , child->full_name); +of_node_put (child); goto err_disable_oscin; }