aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDenis Efremov <yefremov.denis@gmail.com>2013-02-11 10:04:06 -0500
committerTakashi Iwai <tiwai@suse.de>2013-02-11 10:12:24 -0500
commitf49a59c4471d81a233e09dda45187cc44fda009d (patch)
tree8733678a80f5ee548bb543adabbf98d1b168f6d7 /sound
parent17ac8e5c6d3478dcfeb75ed5716ca7e5cee612f0 (diff)
ALSA: rme32.c irq enabling after spin_lock_irq
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> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-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 2450663e1a18..0ecd4100713e 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)
1017 spin_lock_irq(&rme32->lock); 1017 spin_lock_irq(&rme32->lock);
1018 rme32->capture_substream = NULL; 1018 rme32->capture_substream = NULL;
1019 rme32->capture_periodsize = 0; 1019 rme32->capture_periodsize = 0;
1020 spin_unlock(&rme32->lock); 1020 spin_unlock_irq(&rme32->lock);
1021 return 0; 1021 return 0;
1022} 1022}
1023 1023