]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea541088822326699d5f4adb2f3c7a6abd6c98d1
treeb4dd9ac4334e2bfab318d55c6f3bec2a94b03dc4
parent54eb088c6173b9fb8273070ba5e27f88805edef4
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: 0b9edc711fcb ("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