Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140608940
D54337.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
360 B
Referenced Files
None
Subscribers
None
D54337.id.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
Fri, Dec 26, 10:11 PM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27175593
Default Alt Text
D54337.id.diff (360 B)
Attached To
Mode
D54337: sound: Check sndstat_register return value
Attached
Detach File
Event Timeline
Log In to Comment