From 9348f5e7a606b1452a96fea89667e84d26ef2ef8 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 14 Jan 2002 19:14:08 +0000 Subject: [PATCH] The vnode was not being vput()'d in the EEXIST mknod case on the nfs server side. This can lead to a system deadlock. Reviewed by: iedowse Tested by: Alexey G Misurenko , iedowse Bug found with help by: Alexey G Misurenko MFC at: earliest convenience --- sys/nfsserver/nfs_serv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 0db5c9dd5f6..b9d54af3bcf 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -2000,6 +2000,8 @@ out: error = VFS_VPTOFH(vp, &fhp->fh_fid); if (!error) error = VOP_GETATTR(vp, vap, cred, td); + } + if (vp) { vput(vp); vp = NULL; nd.ni_vp = NULL;