]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:07 +0000 (19:51 -0600)
commit3719eda69a273d4f9d48c7dfb25df4171948d031
tree86c98c19c8039fa66e4182ff0075371bf24a359e
parenta7f1f60ae01c75805ce89608271e58a268785b4e
ASoC: dapm: Fix potential DAI widget pointer deref when linking DAIs

BugLink: https://bugs.launchpad.net/bugs/1836287
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/soc/soc-dapm.c