The branch main has been updated by christos:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7485519d56346909c4db595ab0342128353d5b8d

commit 7485519d56346909c4db595ab0342128353d5b8d
Author:     Christos Margiolis <[email protected]>
AuthorDate: 2026-04-16 12:51:56 +0000
Commit:     Christos Margiolis <[email protected]>
CommitDate: 2026-05-27 15:32:12 +0000

    sound: Do not lock before destroying snd_mixer->lock
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/18
---
 sys/dev/sound/pcm/mixer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
index 1baeb1b23077..0001ea7b481a 100644
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -650,7 +650,6 @@ mixer_obj_create(device_t dev, kobj_class_t cls, void 
*devinfo,
        }
 
        if (MIXER_INIT(m)) {
-               mtx_lock(&m->lock);
                mtx_destroy(&m->lock);
                kobj_delete((kobj_t)m, M_DEVBUF);
                return (NULL);

Reply via email to