summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-09-03 08:52:24 +0300
committerTakashi Iwai <tiwai@suse.de>2025-09-03 09:21:58 +0200
commit8409816b1eb306eb1f6137f83317fc756722d7d0 (patch)
tree1297a993d1ac1fed8a137d1a871a74d8128b68e2 /sound/pci
parent649c6e1314d43840cbdca854d37ca30423acdb9f (diff)
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: 8bb75ae244c5 ("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>
Diffstat (limited to 'sound/pci')
-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 123dddcb6972..ca9bbf554650 100644
--- a/sound/pci/rme32.c
+++ b/sound/pci/rme32.c
@@ -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;
}