summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-09-05 23:13:17 +0000
committerMiles Bader <miles@gnu.org>1997-09-05 23:13:17 +0000
commitdc16dfd3b3b8199d95d90e6af08d3bded7798064 (patch)
treed92e897ce480560692e5121636a5fc18a8c00500
parent1cc9716fcb5461126fd86e486d18d20cafb1a48c (diff)
(netfs_S_dir_lookup):
Re-aquire the lock on DNP when looping to follow a symlink.
-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