Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2024 16:49:14 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d6b6165ebb3f - stable/14 - sound: drop midistat lock in error path
Message-ID:  <202407101649.46AGnEFQ035340@gitrepo.freebsd.org>

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



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