diff options
| author | Chris Bainbridge <chris.bainbridge@gmail.com> | 2026-02-02 20:50:33 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-02-04 11:29:56 +0000 |
| commit | 7f67ba5413f98d93116a756e7f17cd2c1d6c2bd6 (patch) | |
| tree | 08c5781b4483daf6bf020e5510bd750d1b3f9d1f | |
| parent | 6e1e735181e0c18e1f4ecb0118be4b1e2ee439d1 (diff) | |
ASoC: amd: fix memory leak in acp3x pdm dma ops
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>
| -rw-r--r-- | sound/soc/amd/renoir/acp3x-pdm-dma.c | 2 |
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 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; } |
