* [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe
@ 2022-03-07 12:45 Miaoqian Lin
2022-03-07 12:52 ` Codrin.Ciubotariu
2022-03-07 20:39 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Miaoqian Lin @ 2022-03-07 12:45 UTC (permalink / raw)
To: Codrin Ciubotariu, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
Bo Shen, alsa-devel, linux-arm-kernel, linux-kernel
Cc: linmq006
This node pointer is returned by of_parse_phandle() with refcount
incremented in this function.
Calling of_node_put() to avoid the refcount leak.
Fixes: 531f67e41dcd ("ASoC: at91sam9g20ek-wm8731: convert to dt support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
sound/soc/atmel/sam9g20_wm8731.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 915da92e1ec8..33e43013ff77 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -214,6 +214,7 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0);
if (!cpu_np) {
dev_err(&pdev->dev, "dai and pcm info missing\n");
+ of_node_put(codec_np);
return -EINVAL;
}
at91sam9g20ek_dai.cpus->of_node = cpu_np;
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe
2022-03-07 12:45 [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe Miaoqian Lin
@ 2022-03-07 12:52 ` Codrin.Ciubotariu
2022-03-07 20:39 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Codrin.Ciubotariu @ 2022-03-07 12:52 UTC (permalink / raw)
To: linmq006, lgirdwood, broonie, perex, tiwai, Nicolas.Ferre,
alexandre.belloni, Claudiu.Beznea, voice.shen, alsa-devel,
linux-arm-kernel, linux-kernel
On 07.03.2022 14:45, Miaoqian Lin wrote:
> This node pointer is returned by of_parse_phandle() with refcount
> incremented in this function.
> Calling of_node_put() to avoid the refcount leak.
>
> Fixes: 531f67e41dcd ("ASoC: at91sam9g20ek-wm8731: convert to dt support")
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe
2022-03-07 12:45 [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe Miaoqian Lin
2022-03-07 12:52 ` Codrin.Ciubotariu
@ 2022-03-07 20:39 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-03-07 20:39 UTC (permalink / raw)
To: Liam Girdwood, Bo Shen, Claudiu Beznea, Jaroslav Kysela,
linux-kernel, linux-arm-kernel, Alexandre Belloni, Miaoqian Lin,
Takashi Iwai, Codrin Ciubotariu, alsa-devel, Nicolas Ferre
On Mon, 7 Mar 2022 12:45:39 +0000, Miaoqian Lin wrote:
> This node pointer is returned by of_parse_phandle() with refcount
> incremented in this function.
> Calling of_node_put() to avoid the refcount leak.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe
commit: f590797fa3c1bccdd19e55441592a23b46aef449
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] 3+ messages in thread
end of thread, other threads:[~2022-03-07 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 12:45 [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe Miaoqian Lin
2022-03-07 12:52 ` Codrin.Ciubotariu
2022-03-07 20:39 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®