aboutsummaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorDenis Efremov <yefremov.denis@gmail.com>2013-02-11 19:04:06 +0400
committerBen Hutchings <ben@decadent.org.uk>2013-03-06 03:23:55 +0000
commite3f48db0492100426fd63335ce7dc02b1c94dc2a (patch)
tree2692bd5c46584f2dae9104eaa01f274e0f047c8f /sound/pci
parent7d2658f0cdf781bcf55ef3ded2fdbd5b649a73da (diff)
ALSA: rme32.c irq enabling after spin_lock_irq
commit f49a59c4471d81a233e09dda45187cc44fda009d upstream. According to the other code in this driver and similar code in rme96 it seems, that spin_lock_irq in snd_rme32_capture_close function should be paired with spin_unlock_irq. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov <yefremov.denis@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/rme32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c
index 21bcb47fab5..62075a51cff 100644
--- a/sound/pci/rme32.c
+++ b/sound/pci/rme32.c
@@ -1017,7 +1017,7 @@ static int snd_rme32_capture_close(struct snd_pcm_substream *substream)
spin_lock_irq(&rme32->lock);
rme32->capture_substream = NULL;
rme32->capture_periodsize = 0;
- spin_unlock(&rme32->lock);
+ spin_unlock_irq(&rme32->lock);
return 0;
}