]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: compress: Fix leak of a widget list in soc_compr_open_fe
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 16 Aug 2016 10:24:46 +0000 (11:24 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 16 Aug 2016 10:52:31 +0000 (11:52 +0100)
commit6d07a382a3da63e541fec4e595b6f6c48677e6d0
tree3eeb6097e290b8103cc6dd738796eb09630b39c9
parent1372dac0367f9e37512ea4720cf3886bcb42562d
ASoC: compress: Fix leak of a widget list in soc_compr_open_fe

After we have called dpcm_path_get we should make sure to call
dpcm_path_put on all error paths. This was not happening causing the
allocated widget list to be leaked, this patch corrects this by adding a
dpcm_path_put to the error path.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c