提交 cd0f8911 编写于 作者: L Liam Girdwood 提交者: Mark Brown

ASoC: core: Fix dai_link dereference.

We should check dailess before dereferencing.
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NLiam Girdwood <lrg@ti.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 81e8e492
...@@ -1218,7 +1218,7 @@ static int soc_post_component_init(struct snd_soc_card *card, ...@@ -1218,7 +1218,7 @@ static int soc_post_component_init(struct snd_soc_card *card,
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
/* add DPCM sysfs entries */ /* add DPCM sysfs entries */
if (!dai_link->dynamic) if (!dailess && !dai_link->dynamic)
goto out; goto out;
ret = soc_dpcm_debugfs_add(rtd); ret = soc_dpcm_debugfs_add(rtd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册