]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:09:29 +0000 (12:09 +0100)
commitbaa3c95b9bbcbb3a463d4dad08484e872c40ec1a
treef19203f21323945923fbe0f31f814f6a96f4c38b
parente71043475e89128c325d06c8bd73981ce9d272ce
ASoC: dapm: Fix potential DAI widget pointer deref when linking DAIs

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>
sound/soc/soc-dapm.c