summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-06-03 00:45:11 +0200
committerJustus Winter <justus@gnupg.org>2016-06-03 00:52:38 +0200
commitdd93fc4bfbaceb65ded2aefca35042438c95f4d5 (patch)
treeaf057383d1dd9af46d2da4d2bf92575e5b3176ef /nfs
parent293e86998748bae2d7a8179ad198ec3452f0d472 (diff)
nfs: appease the stricter reference counting mechanism
* nfs/cache.c (netfs_node_norefs): Do not re-acquire a reference to np. This worked previously, but the new reference counting primitives consider this a use after free. A reference is really not necessary here, we are about to deallocate np anyway. Amends 5eef605e.
Diffstat (limited to 'nfs')
-rw-r--r--nfs/cache.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/nfs/cache.c b/nfs/cache.c
index 2015603b..ecf3b11a 100644
--- a/nfs/cache.c
+++ b/nfs/cache.c
@@ -129,13 +129,10 @@ netfs_node_norefs (struct node *np)
args = malloc (sizeof (struct fnd));
assert (args);
- netfs_nref (np);
-
args->dir = np->nn->dead_dir;
args->name = np->nn->dead_name;
np->nn->dead_dir = 0;
np->nn->dead_name = 0;
- netfs_nput (np);
/* Do this in a separate thread so that we don't wait for it; it
acquires a lock on the dir, which we are not allowed to