From: Liam Girdwood Date: Mon, 30 Apr 2012 10:05:30 +0000 (+0100) Subject: ASoC: core: Fix dai_link dereference. X-Git-Tag: v3.5-rc1~13^2~9^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd0f8911c5d0cc04763f87cf118c66b867e2e6d2;p=profile%2Fivi%2Fkernel-x86-ivi.git ASoC: core: Fix dai_link dereference. We should check dailess before dereferencing. Reported-by: Dan Carpenter Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4d88698..a61671b 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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);