summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-lookup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 6b3c58c1..8899e110 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -326,6 +326,7 @@ netfs_S_dir_lookup (struct protid *diruser,
create = 0;
}
netfs_nput (np);
+ mutex_lock (&dnp->lock);
np = 0;
}
else