ASoC: core: Fix dai_link dereference.
PATCH 1/1 ASoC: core: Fix dai_link dereference.
We should check dailess before dereferencing.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Liam Girdwood <[email protected]>
--- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-core.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5
Mark Brown
AppliedQuoted 1 line · Liam Girdwood
We should check dailess before dereferencing.
Applied, thanks.