diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -574,11 +574,10 @@ d->rec_sysctl_tree = NULL; } + pcm_killchans(d); dsp_destroy_dev(dev); (void)mixer_uninit(dev); - pcm_killchans(d); - PCM_LOCK(d); PCM_RELEASE(d); cv_destroy(&d->cv);