summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2004-11-29 23:05:30 +0000
committerps <ps@FreeBSD.org>2004-11-29 23:05:30 +0000
commit2b85447398dccc1b29574142f8c6b4842d8cabe1 (patch)
tree4cbe36572ec2610077e04086364eb22efd6c5d45 /sys/nfsclient
parent93adaab3cd9310fea8f63f19b973776674b8cb85 (diff)
downloadFreeBSD-src-2b85447398dccc1b29574142f8c6b4842d8cabe1.zip
FreeBSD-src-2b85447398dccc1b29574142f8c6b4842d8cabe1.tar.gz
Fix for a bug in nfs_mkdir() that called vrele() instead of vput()
in the error cases, causing panics. Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com Reviewed by: rwatson
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/nfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 755fed3..bd0fcb3 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -1824,7 +1824,7 @@ nfsmout:
*/
if (error == EEXIST || (!error && !gotvp)) {
if (newvp) {
- vrele(newvp);
+ vput(newvp);
newvp = NULL;
}
error = nfs_lookitup(dvp, cnp->cn_nameptr, len, cnp->cn_cred,
@@ -1837,7 +1837,7 @@ nfsmout:
}
if (error) {
if (newvp)
- vrele(newvp);
+ vput(newvp);
} else
*ap->a_vpp = newvp;
return (error);
OpenPOWER on IntegriCloud