Home
last modified time | relevance | path

Searched hist:dc2a17f4f074c434757e2cef5026d4747fe22955 (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/mediatek/mt2701/
H A Dmt2701-afe-pcm.cdiff dc2a17f4f074c434757e2cef5026d4747fe22955 Mon Jan 22 12:33:05 CET 2018 Ryder Lee <ryder.lee@mediatek.com> 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>