Commit cd0f8911 authored by Liam Girdwood's avatar Liam Girdwood Committed by Mark Brown

ASoC: core: Fix dai_link dereference.

We should check dailess before dereferencing.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 81e8e492
......@@ -1218,7 +1218,7 @@ static int soc_post_component_init(struct snd_soc_card *card,
#ifdef CONFIG_DEBUG_FS
/* add DPCM sysfs entries */
if (!dai_link->dynamic)
if (!dailess && !dai_link->dynamic)
goto out;
ret = soc_dpcm_debugfs_add(rtd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment