Page MenuHomeFreeBSD

D59110.1794117213.diff
No OneTemporary

Authored By
Unknown
Size
498 B
Referenced Files
None
Subscribers
None

D59110.1794117213.diff

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

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)

Event Timeline