git: d6b6165ebb3f - stable/14 - sound: drop midistat lock in error path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jul 2024 16:49:14 UTC
The branch stable/14 has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=d6b6165ebb3f3a591b2ba0f7c3b6dabca78806f3
commit d6b6165ebb3f3a591b2ba0f7c3b6dabca78806f3
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2024-07-09 19:20:59 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-07-10 16:48:14 +0000
sound: drop midistat lock in error path
Fixes: fc76e24e583d45a3a59fd7ad4e603c0679eaf572
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D45939
(cherry picked from commit 3114d55866b86ca1132923211936aa23881b0057)
---
sys/dev/sound/midi/sequencer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/sound/midi/sequencer.c b/sys/dev/sound/midi/sequencer.c
index ab2d48294a6a..e4ea1e208356 100644
--- a/sys/dev/sound/midi/sequencer.c
+++ b/sys/dev/sound/midi/sequencer.c
@@ -751,6 +751,7 @@ mseq_open(struct cdev *i_dev, int flags, int mode, struct thread *td)
mtx_lock(&scp->seq_lock);
if (scp->busy) {
mtx_unlock(&scp->seq_lock);
+ midistat_unlock();
SEQ_DEBUG(2, printf("seq_open: unit %d is busy.\n", scp->unit));
return EBUSY;
}