mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
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>
This commit is contained in:
parent
81e8e49261
commit
cd0f8911c5
1 changed files with 1 additions and 1 deletions
|
@ -1218,7 +1218,7 @@ static int soc_post_component_init(struct snd_soc_card *card,
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FS
|
#ifdef CONFIG_DEBUG_FS
|
||||||
/* add DPCM sysfs entries */
|
/* add DPCM sysfs entries */
|
||||||
if (!dai_link->dynamic)
|
if (!dailess && !dai_link->dynamic)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = soc_dpcm_debugfs_add(rtd);
|
ret = soc_dpcm_debugfs_add(rtd);
|
||||||
|
|
Loading…
Reference in a new issue