Commit 9ac69884 authored by Denis Efremov's avatar Denis Efremov Committed by Greg Kroah-Hartman

ALSA: rme32.c irq enabling after spin_lock_irq

commit f49a59c4 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: default avatarDenis Efremov <yefremov.denis@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 156b3e8a
...@@ -1017,7 +1017,7 @@ static int snd_rme32_capture_close(struct snd_pcm_substream *substream) ...@@ -1017,7 +1017,7 @@ static int snd_rme32_capture_close(struct snd_pcm_substream *substream)
spin_lock_irq(&rme32->lock); spin_lock_irq(&rme32->lock);
rme32->capture_substream = NULL; rme32->capture_substream = NULL;
rme32->capture_periodsize = 0; rme32->capture_periodsize = 0;
spin_unlock(&rme32->lock); spin_unlock_irq(&rme32->lock);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment