]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: fixup dead-lock at snd_soc_unregister_component()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 6 Nov 2019 07:05:05 +0000 (16:05 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 6 Nov 2019 15:32:40 +0000 (15:32 +0000)
commit88194bb84658d7d1459021c8d56e560dc3ee45fb
tree7c1022cca24fbbc67976f8d75a07e0e3991d8eeb
parent9e19edca1e86174f3958aad748a6b167ed68e168
ASoC: soc-core: fixup dead-lock at snd_soc_unregister_component()

snd_soc_unregister_component() is calling snd_soc_lookup_component()
under mutex_lock(). But, snd_soc_lookup_component() itself is using
mutex_lock(), thus it will be dead-lock.
This patch adds _nolocked version of it, and avoid dead-lock issue.

Fixes: 4e5ac30906dc("ASoC: soc-core: use snd_soc_lookup_component() at snd_soc_unregister_component()")
Reported-by: "kernelci.org bot" <bot@kernelci.org>"
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87bltph4da.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c