Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175161107
D60466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
555 B
Referenced Files
None
Subscribers
None
D60466.diff
View Options
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -2175,13 +2175,12 @@
d = NULL;
}
}
- bus_topo_unlock();
- /* Exhausted the search -- nothing is locked, so return. */
- if (d == NULL)
+ /* Exhausted the search. */
+ if (d == NULL) {
+ bus_topo_unlock();
return (EINVAL);
-
- /* XXX Need Giant magic entry ??? */
+ }
PCM_UNLOCKASSERT(d);
PCM_LOCK(d);
@@ -2271,6 +2270,7 @@
ai->min_channels = 0;
PCM_UNLOCK(d);
+ bus_topo_unlock();
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 9, 6:36 PM (3 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40485327
Default Alt Text
D60466.diff (555 B)
Attached To
Mode
D60466: sound: Hold the topology lock across dsp_oss_audioinfo()
Attached
Detach File
Event Timeline
Log In to Comment