ASoC: core: lock client_mutex while removing link components
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Thu, 23 May 2019 17:12:01 +0000 (10:12 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 24 May 2019 12:10:46 +0000 (13:10 +0100)
commit34ac3c3eb8f0c07252ceddf0a22dd240e5c91ccb
treef850e4fb8ecf9fd7652c67c1ac06eacf567c98b9
parent4819d06292c9b57eabdd6d1603e49a27baf183be
ASoC: core: lock client_mutex while removing link components

Removing link components results in topology unloading. So,
acquire the client_mutex before removing components in
soc_remove_link_components. This will prevent the lockdep warning
seen when dai links are removed during topology removal.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c