linux/sound/soc/mediatek
Ryder Lee dc2a17f4f0
ASoC: mediatek: fix double free in mt2701_afe_pcm_dev_probe()
The commit dfa3cbb8(ASoC: mediatek: modify MT2701 AFE driver to adapt mfd device)
leads to the following static checker warning:

	sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:1535 mt2701_afe_pcm_dev_probe()
	error: double free of 'component'

This patch fixes that and adds a helper mt2701_afe_add_component() to setup
component.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-01-22 12:18:36 +00:00
..
common ASoC: mediatek: mark symbols static where possible 2016-08-11 15:02:28 +01:00
mt2701 ASoC: mediatek: fix double free in mt2701_afe_pcm_dev_probe() 2018-01-22 12:18:36 +00:00
mt8173 ASoC: mt8173: remove unnecessary micbias widget in route 2018-01-10 10:59:33 +00:00
Kconfig ASoC: mediatek: add I2C dependency for CS42XX8 2017-04-21 17:58:34 +01:00
Makefile ASoC: mediatek: Add mt2701-cs42448 driver and config option. 2016-07-04 16:49:03 +02:00