ASoC: soc-core: Hold client_mutex around soc_init_dai_link()
authorRohit kumar <rohitkr@codeaurora.org>
Thu, 10 Jan 2019 09:02:41 +0000 (14:32 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 10 Jan 2019 12:04:28 +0000 (12:04 +0000)
commit04eb1efcd614d6f067b76a355b3a3599667959dc
treeb4dd9ac4334e2bfab318d55c6f3bec2a94b03dc4
parent239b8b34a856777e562373ae0de605536a7ccade
ASoC: soc-core: Hold client_mutex around soc_init_dai_link()

soc_init_dai_link() calls soc_find_component() which needs
to be within client_mutex lock. Add client_mutex lock around
soc_init_dai_link() in snd_soc_register_card() to avoid
lockdep warning.

Fixes: 8780cf1142a5 ("ASoC: soc-core: defer card probe until all component is added to list")
Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c