summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2003-01-14 17:13:52 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2003-01-14 17:13:52 +0000
commite550089d43cd2d6f1047199268ec8a5074ddc65e (patch)
tree44863be9dcce40a431638c6581f75a05a47e348f
parentb24431ad30003182ce8e61d9f9dce7d9c1ee83ea (diff)
Notes
-rw-r--r--sys/dev/sound/pcm/sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 2b77684a96ce..c184a69e13e9 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -536,7 +536,7 @@ pcm_killchan(device_t dev)
snd_mtxunlock(d->lock);
ch = sce->channel;
- error = pcm_chn_remove(d, sce->channel, 1);
+ error = pcm_chn_remove(d, sce->channel, SLIST_EMPTY(&ch->children));
if (error)
return (error);
return (pcm_chn_destroy(ch));