Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2024 19:28:10 GMT
From:      Robert Wing <rew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3114d55866b8 - main - sound: drop midistat lock in error path
Message-ID:  <202407091928.469JSAaE056773@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407091928.469JSAaE056773>