]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Fix deadlock in snd_soc_instantiate_card()
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Sat, 8 Jun 2019 05:07:06 +0000 (22:07 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 10 Jun 2019 14:36:45 +0000 (15:36 +0100)
commitc5d58af9cca26964e677950f4d25a71a216f6ee7
treec3fce116d1b18971754e83fff6853aa59734947d
parenta4916c44706042c57e37982f8468323c2b8e3308
ASoC: core: Fix deadlock in snd_soc_instantiate_card()

Move the client_mutex lock to snd_soc_unbind_card() before
removing link components. This prevents the deadlock
in the error path in snd_soc_instantiate_card().

Fixes: 142e488eae (ASoC: core: lock client_mutex while removing
link components)
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c