diff options
author | Liam Girdwood <lrg@ti.com> | 2012-04-30 10:05:30 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-30 10:09:13 (GMT) |
commit | cd0f8911c5d0cc04763f87cf118c66b867e2e6d2 (patch) | |
tree | 05c19ef0f248ad3aa97e809abbcb53a2d38c0e23 /sound | |
parent | 81e8e4926167ab32593bbb915b45a42024ca1020 (diff) | |
download | linux-fsl-qoriq-cd0f8911c5d0cc04763f87cf118c66b867e2e6d2.tar.xz |
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>
Diffstat (limited to 'sound')
-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 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); |