summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}