Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177553402
D54337.1794701701.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
360 B
Referenced Files
None
Subscribers
None
D54337.1794701701.diff
View Options
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
@@ -426,7 +426,8 @@
else if (snd_unit_auto == 1)
snd_unit = pcm_best_unit(snd_unit);
- sndstat_register(dev, d->status);
+ if (sndstat_register(dev, d->status) != 0)
+ return (EINVAL);
return (dsp_make_dev(dev));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 12:15 AM (3 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41734494
Default Alt Text
D54337.1794701701.diff (360 B)
Attached To
Mode
D54337: sound: Check sndstat_register return value
Attached
Detach File
Event Timeline