linux_dsm_epyc7002/sound/soc/amd
Colin Ian King 46dce40426
ASoC: amd: fix memory leak of i2s_data on error return
Currently when snd_pcm_hw_constraint_integer fails there is
a memory leak of i2s_data on the error return path. Fix this by
kfree'ing i2s_data before returning.

Detected by CoverityScan, CID#1475479 ("Resource leak")

Fixes: 0b87d6bcd6 ("ASoC: amd: add acp3x pcm driver dma ops")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-14 14:01:02 -08:00
..
include ASoC: AMD : add ACP 2.2 register headers 2016-01-10 12:44:10 +00:00
raven ASoC: amd: fix memory leak of i2s_data on error return 2018-11-14 14:01:02 -08:00
acp-da7219-max98357a.c ASoC: AMD: constify regulator_desc structure 2018-11-05 11:25:57 +00:00
acp-pcm-dma.c Merge remote-tracking branch 'asoc/for-4.19' into asoc-4.20 2018-10-19 13:31:41 +01:00
acp-rt5645.c ASoC: rt5645/rt5677: replace codec to component 2018-02-12 11:18:44 +00:00
acp.h ASoC: AMD: Fix simultaneous playback and capture on different channel 2018-09-10 18:46:09 +01:00
Kconfig ASoC: amd: enable acp3x drivers build 2018-11-13 11:44:12 -08:00
Makefile ASoC: amd: enable acp3x drivers build 2018-11-13 11:44:12 -08:00