linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: cygnus: fix for_each_child.cocci warnings
@ 2021-03-28 14:54 Julia Lawall
  2021-03-29 19:58 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2021-03-28 14:54 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Ray Jui, Scott Branden
  Cc: bcm-kernel-feedback-list, Kuninori Morimoto, Sumera Priyadarsini,
	linux-kernel, kbuild-all

From: kernel test robot <lkp@intel.com>

Function "for_each_available_child_of_node" should have of_node_put()
before return around line 1352.

Generated by: scripts/coccinelle/iterators/for_each_child.cocci

CC: Sumera Priyadarsini <sylphrenadin@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

 cygnus-ssp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/sound/soc/bcm/cygnus-ssp.c
+++ b/sound/soc/bcm/cygnus-ssp.c
@@ -1348,8 +1348,10 @@ static int cygnus_ssp_probe(struct platf
 					&cygnus_ssp_dai[active_port_count]);

 		/* negative is err, 0 is active and good, 1 is disabled */
-		if (err < 0)
+		if (err < 0) {
+			of_node_put(child_node);
 			return err;
+		}
 		else if (!err) {
 			dev_dbg(dev, "Activating DAI: %s\n",
 				cygnus_ssp_dai[active_port_count].name);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: cygnus: fix for_each_child.cocci warnings
  2021-03-28 14:54 [PATCH] ASoC: cygnus: fix for_each_child.cocci warnings Julia Lawall
@ 2021-03-29 19:58 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2021-03-29 19:58 UTC (permalink / raw)
  To: Scott Branden, Julia Lawall, Takashi Iwai, Liam Girdwood,
	Jaroslav Kysela, Ray Jui
  Cc: Mark Brown, linux-kernel, Sumera Priyadarsini, Kuninori Morimoto,
	kbuild-all, bcm-kernel-feedback-list

On Sun, 28 Mar 2021 16:54:45 +0200 (CEST), Julia Lawall wrote:
> Function "for_each_available_child_of_node" should have of_node_put()
> before return around line 1352.
> 
> Generated by: scripts/coccinelle/iterators/for_each_child.cocci

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: cygnus: fix for_each_child.cocci warnings
      commit: aa320c7cd45647b75af2233430d36a8d154703d4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-29 19:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 14:54 [PATCH] ASoC: cygnus: fix for_each_child.cocci warnings Julia Lawall
2021-03-29 19:58 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).