diff options
author | eivind <eivind@FreeBSD.org> | 1999-11-12 03:34:28 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-11-12 03:34:28 +0000 |
commit | 21fff7b1c21bef91f4e2371aa79dee6d9c899b3d (patch) | |
tree | bbd7a274a33855ba0b75b1c22be91fb6dfc52472 /sys/kern/vfs_extattr.c | |
parent | 9a30e94971558bbe2bf2f4450cfeb7f8dc8b5e89 (diff) | |
download | FreeBSD-src-21fff7b1c21bef91f4e2371aa79dee6d9c899b3d.zip FreeBSD-src-21fff7b1c21bef91f4e2371aa79dee6d9c899b3d.tar.gz |
Remove WILLRELE from VOP_RENAME
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index c1f21e7..62252b4 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -1142,6 +1142,9 @@ mknod(p, uap) } else { error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); + if (error == 0) { + vput(nd.ni_vp); + } vput(nd.ni_dvp); } } else { @@ -1197,6 +1200,9 @@ mkfifo(p, uap) vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); + if (error == 0) { + vput(nd.ni_vp); + } vput(nd.ni_dvp); return (error); } |