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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user