Linux Sound subsystem development
 help / color / mirror / Atom feed
* [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

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