mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
ALSA: echoaudio: re-enable IRQs on failure path
This should be spin_unlock_irq() instead of spin_lock().
Fixes: 6c33125448
("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>
This commit is contained in:
parent
0afff876dd
commit
b91c9cb9d4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue