[alsa-devel] [PATCH] ASoC: core: Fix dai_link dereference.
Liam Girdwood
lrg at ti.com
Mon Apr 30 12:05:30 CEST 2012
We should check dailess before dereferencing.
Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Signed-off-by: Liam Girdwood <lrg at ti.com>
---
sound/soc/soc-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 9bdfef4..7f1e012 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);
--
1.7.9.5
More information about the Alsa-devel
mailing list