linux_dsm_epyc7002/sound/soc/mediatek/mt2701
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
..
Makefile ASoC: mediatek: Add mt2701-wm8960 machine driver 2017-03-29 11:37:53 +01:00
mt2701-afe-clock-ctrl.c ASoC: mediatek: add some core clocks for MT2701 AFE 2018-01-04 14:25:55 +00:00
mt2701-afe-clock-ctrl.h ASoC: mediatek: rework clock functions for MT2701 2018-01-03 15:15:24 +00:00
mt2701-afe-common.h ASoC: mediatek: add some core clocks for MT2701 AFE 2018-01-04 14:25:55 +00:00
mt2701-afe-pcm.c ASoC: mediatek: fix double free in mt2701_afe_pcm_dev_probe() 2018-01-22 12:18:36 +00:00
mt2701-cs42448.c ASoC: mediatek: Constify hw_constraints 2017-06-13 21:33:03 +01:00
mt2701-reg.h ASoC: mediatek: modify MT2701 AFE driver to adapt mfd device 2018-01-04 14:25:56 +00:00
mt2701-wm8960.c ASoC: mediatek: Add mt2701-wm8960 machine driver 2017-03-29 11:37:53 +01:00