mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
ALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()
We accidentally deleted the wrong line of code when we did the
conversion to guard() locks. If the rme32->capture_substream has
already been set we should return -EBUSY.
Fixes: 8bb75ae244 ("ALSA: rme32: Use guard() for spin locks")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aLfXmIQRFTXr5h8O@stanley.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
649c6e1314
commit
8409816b1e
1 changed files with 1 additions and 1 deletions
|
|
@ -936,7 +936,7 @@ snd_rme32_capture_adat_open(struct snd_pcm_substream *substream)
|
|||
|
||||
scoped_guard(spinlock_irq, &rme32->lock) {
|
||||
if (rme32->capture_substream != NULL)
|
||||
spin_unlock_irq(&rme32->lock);
|
||||
return -EBUSY;
|
||||
rme32->capture_substream = substream;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue