aboutsummaryrefslogtreecommitdiff
path: root/netfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'netfs.c')
-rw-r--r--netfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netfs.c b/netfs.c
index 58665085..6b105f91 100644
--- a/netfs.c
+++ b/netfs.c
@@ -151,10 +151,11 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
error_t err;
err = procfs_lookup (dir, name, np);
+ mutex_unlock (&dir->lock);
+
if (! err)
mutex_lock (&(*np)->lock);
- mutex_unlock (&dir->lock);
return err;
}