Skip to contentSkip to conversation

ASoC: core: Fix dai_link dereference.

PATCH Applied Liam Girdwood 2 participants 2 messages Apr 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: core: Fix dai_link dereference.

We should check dailess before dereferencing.

---
 sound/soc/soc-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-core.c +1 -1
index 9bdfef4..7f1e012 100644
@@ -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);
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 1 line · Liam Girdwood

We should check dailess before dereferencing.

Applied, thanks.