Re: [PATCH AUTOSEL 5.1 38/51] ASoC: core: Fix deadlock in snd_soc_instantiate_card()

From: Sasha Levin
Date: Wed Jun 26 2019 - 20:24:28 EST


On Wed, Jun 26, 2019 at 11:39:12AM +0100, Mark Brown wrote:
On Tue, Jun 25, 2019 at 11:40:54PM -0400, Sasha Levin wrote:
From: Ranjani Sridharan <ranjani.sridharan@xxxxxxxxxxxxxxx>

[ Upstream commit 495f926c68ddb905a7a0192963096138c6a934e1 ]

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().

Again, are you sure there's no dependencies?

I'm taking the patch it depends on (also a fix) as part of this AUTOSEL
branch.

--
Thanks,
Sasha