]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: snd_soc_rtdcom_lookup() cares component driver name
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 23 Jan 2018 00:41:24 +0000 (00:41 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 23 Jan 2018 11:17:56 +0000 (11:17 +0000)
commitc800cdb2738903b5b7d0d7df873966d2b5f1c212
tree00fb0782e837b6bc47176814918bab0df25f0294
parentf788a4ca6a56c4e5f7b9f5485f509e2e7f8f6857
ASoC: soc-core: snd_soc_rtdcom_lookup() cares component driver name

snd_soc_rtdcom_lookup() look up component by uisng driver name.
Then, it uses component->driver->name.
Some driver might doesn't have it, thus it should care NULL pointer.
This patch solve this issue.

Reported-by: Mukunda,Vijendar <vijendar.mukunda@amd.com>
Reported-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Mukunda,Vijendar <vijendar.mukunda@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c