diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2018-01-22 14:33:05 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-22 15:18:36 +0300 |
commit | dc2a17f4f074c434757e2cef5026d4747fe22955 (patch) | |
tree | 738c6a27db2ebe5030b3a791248fb11597ef77ee /include/sound | |
parent | 11aa2d9613c9523f8f78863bdfc7d79b37afcbbe (diff) | |
download | linux-dc2a17f4f074c434757e2cef5026d4747fe22955.tar.xz |
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>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions