summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-22 17:52:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-22 17:52:39 +0000
commitdcc860c37ec01aa7dc043fe630ca9401b3306df5 (patch)
treeddb15f00920e994fbe2ecdc4a6a2e0a5e75630dc /libports
parent5f497c4a927cc5ee6ab2166bfcbc2b6b44172135 (diff)
(ports_lookup_port): UNlock port lock at exit of function.
Diffstat (limited to 'libports')
-rw-r--r--libports/lookup-port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/lookup-port.c b/libports/lookup-port.c
index 94b3c2a7..d0ee8d00 100644
--- a/libports/lookup-port.c
+++ b/libports/lookup-port.c
@@ -47,7 +47,7 @@ ports_lookup_port (struct port_bucket *bucket,
if (pi)
pi->refcnt++;
- mutex_lock (&_ports_lock);
+ mutex_unlock (&_ports_lock);
return pi;
}