* [PATCH] ASoC: amd: fix memory leak in acp3x pdm dma ops
@ 2026-02-02 20:50 Chris Bainbridge
2026-02-04 13:03 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Chris Bainbridge @ 2026-02-02 20:50 UTC (permalink / raw)
To: broonie
Cc: linux-kernel, lgirdwood, perex, tiwai, linux-sound,
Vijendar.Mukunda, pierre-louis.bossart, Chris Bainbridge
Fixes: 4a767b1d039a8 ("ASoC: amd: add acp3x pdm driver dma ops")
Signed-off-by: Chris Bainbridge <chris.bainbridge@gmail.com>
---
sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/amd/renoir/acp3x-pdm-dma.c b/sound/soc/amd/renoir/acp3x-pdm-dma.c
index 95ac8c680037..a560d06097d5 100644
--- a/sound/soc/amd/renoir/acp3x-pdm-dma.c
+++ b/sound/soc/amd/renoir/acp3x-pdm-dma.c
@@ -301,9 +301,11 @@ static int acp_pdm_dma_close(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{
struct pdm_dev_data *adata = dev_get_drvdata(component->dev);
+ struct pdm_stream_instance *rtd = substream->runtime->private_data;
disable_pdm_interrupts(adata->acp_base);
adata->capture_stream = NULL;
+ kfree(rtd);
return 0;
}
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: amd: fix memory leak in acp3x pdm dma ops
2026-02-02 20:50 [PATCH] ASoC: amd: fix memory leak in acp3x pdm dma ops Chris Bainbridge
@ 2026-02-04 13:03 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-02-04 13:03 UTC (permalink / raw)
To: Chris Bainbridge
Cc: linux-kernel, lgirdwood, perex, tiwai, linux-sound,
Vijendar.Mukunda, Pierre-Louis Bossart
On Mon, 02 Feb 2026 20:50:33 +0000, Chris Bainbridge wrote:
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: amd: fix memory leak in acp3x pdm dma ops
commit: 7f67ba5413f98d93116a756e7f17cd2c1d6c2bd6
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:[~2026-02-04 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 20:50 [PATCH] ASoC: amd: fix memory leak in acp3x pdm dma ops Chris Bainbridge
2026-02-04 13:03 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox