summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bainbridge <chris.bainbridge@gmail.com>2026-02-02 20:50:33 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-11 13:37:26 +0100
commit6d33640404968fe9f14a1252b337362b62fff490 (patch)
tree449233956e51ee8f0dcaa5cf7b9eb00ae4c0f750
parentb9b6573421de51829f7ec1cce76d85f5f6fbbd7f (diff)
downloadlinux-6d33640404968fe9f14a1252b337362b62fff490.tar.gz
linux-6d33640404968fe9f14a1252b337362b62fff490.tar.bz2
linux-6d33640404968fe9f14a1252b337362b62fff490.zip
ASoC: amd: fix memory leak in acp3x pdm dma ops
[ Upstream commit 7f67ba5413f98d93116a756e7f17cd2c1d6c2bd6 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--sound/soc/amd/renoir/acp3x-pdm-dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/amd/renoir/acp3x-pdm-dma.c b/sound/soc/amd/renoir/acp3x-pdm-dma.c
index 7203c6488df0..643deed487ab 100644
--- a/sound/soc/amd/renoir/acp3x-pdm-dma.c
+++ b/sound/soc/amd/renoir/acp3x-pdm-dma.c
@@ -295,9 +295,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;
}