summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2015-12-29 16:25:13 +0000
committerLuis Henriques <luis.henriques@canonical.com>2016-01-25 10:44:05 +0000
commit4388d98324508dbf7528b0050e50c04cdf336028 (patch)
tree2195adcbdba5b12736387791e2f2ef20905e0426 /include/linux
parentfdc08799e6ee104d6ed0bab706997a97059e15c7 (diff)
ASoC: Use nested lock for snd_soc_dapm_mutex_lock
commit 783513eec3209542fcd6ac0cbcb030b3c17a4827 upstream. snd_soc_dapm_mutex_lock currently uses the un-nested call which can cause lockdep warnings when called from control handlers (a relatively common usage) and using modules. As creating the control causes a potential mutex inversion with the handler, creating the control will take the controls_rwsem under the dapm_mutex and accessing the control will take the dapm_mutex under controls_rwsem. All the users look like they want to be using the runtime class of the lock anyway, so this patch just changes snd_soc_dapm_mutex_lock to use the nested call, with the SND_SOC_DAPM_CLASS_RUNTIME class. Fixes: f6d5e586b416 ("ASoC: dapm: Add helpers to lock/unlock DAPM mutex") Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions