Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171179261
D47460.id146077.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
354 B
Referenced Files
None
Subscribers
None
D47460.id146077.diff
View Options
diff --git a/sys/dev/sound/dummy.c b/sys/dev/sound/dummy.c
--- a/sys/dev/sound/dummy.c
+++ b/sys/dev/sound/dummy.c
@@ -76,7 +76,7 @@
for (i = 0; i < sc->chnum; i++) {
ch = &sc->chans[i];
- if (!ch->run)
+ if (!ch->run || ch->chan == NULL || ch->buf == NULL)
continue;
if (ch->dir == PCMDIR_PLAY)
ch->ptr += sndbuf_getblksz(ch->buf);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 10, 7:15 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38634805
Default Alt Text
D47460.id146077.diff (354 B)
Attached To
Mode
D47460: snd_dummy: Avoid NULL dereferences in dummy_chan_io()
Attached
Detach File
Event Timeline
Log In to Comment