ASoC: dapm: Fix potential DAI widget pointer deref when linking DAIs
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Thu, 14 Jun 2018 19:26:42 +0000 (20:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:53 +0000 (17:00 -0700)
commit05f78b1a0e0c7d76bd97159e9a575165e7fdc6c6
tree4967e046cd86f1322eb058bac263a5d7a431a1b1
parent3fd534a5480ec33913c3f76cc0c2de61f5db46e3
ASoC: dapm: Fix potential DAI widget pointer deref when linking DAIs

[ Upstream commit e01b4f624278d5efe5fb5da585ca371947b16680 ]

Sometime a component or topology may configure a DAI widget with no
private data leading to a dev_dbg() dereferencne of this data.

Fix this to check for non NULL private data and let users know if widget
is missing DAI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c