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)
commit495f926c68ddb905a7a0192963096138c6a934e1
treec3fce116d1b18971754e83fff6853aa59734947d
parent04268bf2757a125616b6c2140e6250f43b7b737a
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: 34ac3c3eb8 (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