projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0afff87
)
ALSA: echoaudio: re-enable IRQs on failure path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 13 Jul 2020 10:53:24 +0000
(13:53 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 13 Jul 2020 16:04:48 +0000
(18:04 +0200)
This should be spin_unlock_irq() instead of spin_lock().
Fixes:
6c3312544873
("ALSA: echoaudio: Prevent races in calls to set_audio_format()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link:
https://lore.kernel.org/r/20200713105324.GB251988@mwanda
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/echoaudio.c
patch
|
blob
|
history
diff --git
a/sound/pci/echoaudio/echoaudio.c
b/sound/pci/echoaudio/echoaudio.c
index
e81f428
..
6aeb99a
100644
(file)
--- a/
sound/pci/echoaudio/echoaudio.c
+++ b/
sound/pci/echoaudio/echoaudio.c
@@
-721,7
+721,7
@@
static int pcm_prepare(struct snd_pcm_substream *substream)
spin_lock_irq(&chip->lock);
if (snd_BUG_ON(!is_pipe_allocated(chip, pipe_index))) {
- spin_unlock(&chip->lock);
+ spin_unlock
_irq
(&chip->lock);
return -EINVAL;
}