git: 3114d55866b8 - main - sound: drop midistat lock in error path
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jul 2024 19:28:10 UTC
The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=3114d55866b86ca1132923211936aa23881b0057 commit 3114d55866b86ca1132923211936aa23881b0057 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2024-07-09 19:20:59 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2024-07-09 19:20:59 +0000 sound: drop midistat lock in error path Fixes: fc76e24e583d45a3a59fd7ad4e603c0679eaf572 Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45939 --- 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 6b3a2711e951..29e01fcaba2f 100644 --- a/sys/dev/sound/midi/sequencer.c +++ b/sys/dev/sound/midi/sequencer.c @@ -750,6 +750,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; }