Message ID | 20181114221128.BDB32440078@finisterre.ee.mobilebroadband (mailing list archive) |
---|---|
State | Accepted |
Commit | 46dce4042659755a2b9753369d0c2d8ca33e35cf |
Headers | show |
Series | Applied "ASoC: amd: fix memory leak of i2s_data on error return" to the asoc tree | expand |
diff --git a/sound/soc/amd/raven/acp3x-pcm-dma.c b/sound/soc/amd/raven/acp3x-pcm-dma.c index 2e61cef00f41..b16cdd187139 100644 --- a/sound/soc/amd/raven/acp3x-pcm-dma.c +++ b/sound/soc/amd/raven/acp3x-pcm-dma.c @@ -309,6 +309,7 @@ static int acp3x_dma_open(struct snd_pcm_substream *substream) SNDRV_PCM_HW_PARAM_PERIODS); if (ret < 0) { dev_err(component->dev, "set integer constraint failed\n"); + kfree(i2s_data); return ret; }