Page MenuHomeFreeBSD

D60466.1794391579.diff
No OneTemporary

Authored By
Unknown
Size
555 B
Referenced Files
None
Subscribers
None

D60466.1794391579.diff

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

Mime Type
text/plain
Expires
Wed, Nov 11, 10:06 AM (17 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40485327
Default Alt Text
D60466.1794391579.diff (555 B)

Event Timeline