projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1e735
)
ASoC: amd: fix memory leak in acp3x pdm dma ops
author
Chris Bainbridge
<chris.bainbridge@gmail.com>
Mon, 2 Feb 2026 20:50:33 +0000
(20:50 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 4 Feb 2026 11:29:56 +0000
(11:29 +0000)
Fixes:
4a767b1d039a8
("ASoC: amd: add acp3x pdm driver dma ops")
Signed-off-by: Chris Bainbridge <chris.bainbridge@gmail.com>
Link:
https://patch.msgid.link/20260202205034.7697-1-chris.bainbridge@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/renoir/acp3x-pdm-dma.c
patch
|
blob
|
history
diff --git
a/sound/soc/amd/renoir/acp3x-pdm-dma.c
b/sound/soc/amd/renoir/acp3x-pdm-dma.c
index
95ac8c6
..
a560d06
100644
(file)
--- 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;
}