Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111029123
D48185.id148536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
559 B
Referenced Files
None
Subscribers
None
D48185.id148536.diff
View Options
diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c
--- a/sys/dev/sound/pcm/vchan.c
+++ b/sys/dev/sound/pcm/vchan.c
@@ -838,15 +838,8 @@
CHN_UNLOCK(c);
- if (!(parent->flags & CHN_F_BUSY))
- return (EBUSY);
-
- if (CHN_EMPTY(parent, children))
- return (EINVAL);
-
/* remove us from our parent's children list */
- CHN_REMOVE(parent, c, children);
-
+ CHN_REMOVE_SAFE(parent, c, children);
if (CHN_EMPTY(parent, children)) {
parent->flags &= ~(CHN_F_BUSY | CHN_F_HAS_VCHAN);
chn_reset(parent, parent->format, parent->speed);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 27, 10:34 AM (5 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15637721
Default Alt Text
D48185.id148536.diff (559 B)
Attached To
Mode
D48185: sound: Do not fail from vchan_destroy() if children list is empty
Attached
Detach File
Event Timeline
Log In to Comment