[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 08/19: nfs: appease the stricter reference counting mechanism
From: |
Samuel Thibault |
Subject: |
[hurd] 08/19: nfs: appease the stricter reference counting mechanism |
Date: |
Wed, 10 Aug 2016 00:05:50 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit dd93fc4bfbaceb65ded2aefca35042438c95f4d5
Author: Justus Winter <address@hidden>
Date: Fri Jun 3 00:45:11 2016 +0200
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.
---
nfs/cache.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/nfs/cache.c b/nfs/cache.c
index 2015603..ecf3b11 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
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 01/19: libdiskfs: fix error handling, (continued)
- [hurd] 01/19: libdiskfs: fix error handling, Samuel Thibault, 2016/08/09
- [hurd] 07/19: Fix pipe_send() with no data, Samuel Thibault, 2016/08/09
- [hurd] 11/19: trans/crash: fix blunder, Samuel Thibault, 2016/08/09
- [hurd] 16/19: proc: Fix permission check., Samuel Thibault, 2016/08/09
- [hurd] 14/19: libpager: provide 'pager_create_alloc', Samuel Thibault, 2016/08/09
- [hurd] 03/19: Make <sys/procfs.h> self-contained again, Samuel Thibault, 2016/08/09
- [hurd] 04/19: Revert part of "fix compiler warnings in hurd/exec", Samuel Thibault, 2016/08/09
- [hurd] 15/19: startup: Make the kernel a child of startup., Samuel Thibault, 2016/08/09
- [hurd] 17/19: sutils: New utility 'bless'., Samuel Thibault, 2016/08/09
- [hurd] 10/19: Do not make io_select return errors on unsupported READ/WRITE mode, Samuel Thibault, 2016/08/09
- [hurd] 08/19: nfs: appease the stricter reference counting mechanism,
Samuel Thibault <=