Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177306115
D59110.1794117213.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
498 B
Referenced Files
None
Subscribers
None
D59110.1794117213.diff
View Options
diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -557,6 +557,9 @@
if (m == NULL)
return (-1);
+ /* There is no need to lock here, but do it for consistency. */
+ mtx_lock(m->lock);
+
for (i = 0; i < SOUND_MIXER_NRDEVICES; i++) {
v = snd_mixerdefaults[i];
@@ -572,6 +575,8 @@
mixer_setrecsrc(m, 0); /* Set default input. */
+ mtx_unlock(m->lock);
+
snddev->mixer = m;
if (bootverbose) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 8, 5:53 AM (17 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37141619
Default Alt Text
D59110.1794117213.diff (498 B)
Attached To
Mode
D59110: sound: Lock around mixer_set*() in mixer_init() for consistency
Attached
Detach File
Event Timeline