Page MenuHomeFreeBSD

D60466.diff
No OneTemporary

D60466.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
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)

Event Timeline