diff options
author | Liam Girdwood <lrg@ti.com> | 2012-04-30 11:05:30 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-30 11:09:13 +0100 |
commit | cd0f8911c5d0cc04763f87cf118c66b867e2e6d2 (patch) | |
tree | 05c19ef0f248ad3aa97e809abbcb53a2d38c0e23 | |
parent | 81e8e4926167ab32593bbb915b45a42024ca1020 (diff) | |
download | linux-cd0f8911c5d0cc04763f87cf118c66b867e2e6d2.tar.bz2 |
ASoC: core: Fix dai_link dereference.
We should check dailess before dereferencing.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4d8869852ad6..a61671b89e9b 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); |