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
This commit is contained in:
Christos Margiolis
2026-04-16 14:51:56 +02:00
parent 6a3a42c57c
commit 7485519d56
-1
View File
@@ -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);