Page MenuHomeFreeBSD

D60505.id189168.diff
No OneTemporary

D60505.id189168.diff

diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -1348,6 +1348,7 @@
{
struct pcm_channel *c;
+ PCM_BUSYASSERT(d);
KASSERT(!PCM_REGISTERED(d), ("%s(): still registered\n", __func__));
CHN_FOREACH(c, d, channels.pcm) {
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
@@ -411,9 +411,8 @@
PCM_ACQUIRE(d);
d->flags &= ~SD_F_REGISTERED;
- PCM_RELEASE(d);
-
chn_shutdownall(d);
+ PCM_RELEASE(d);
/*
* Destroy the dsp cdev before freeing resources, otherwise threads

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 10, 10:28 AM (4 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40537937
Default Alt Text
D60505.id189168.diff (662 B)

Event Timeline