mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: Skylake: Fix potential null pointer dereference
Check if the next sink is not null to avoid potential null pointer dereference in skl_tplg_bind_sinks(). Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
693c0fb26a
commit
10a5439f0e
|
@ -925,7 +925,7 @@ static int skl_tplg_bind_sinks(struct snd_soc_dapm_widget *w,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sink)
|
if (!sink && next_sink)
|
||||||
return skl_tplg_bind_sinks(next_sink, skl, src_w, src_mconfig);
|
return skl_tplg_bind_sinks(next_sink, skl, src_w, src_mconfig);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue