Release an unneeded reference to a vnode that was gained in a VFS_VGET().

Fixes a readdirplus panic.

Submitted by:	Doug Rabson <dfr@render.com>
This commit is contained in:
David Greenman 1996-09-05 07:58:04 +00:00
parent e547f8e83a
commit 0247363f69
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.31 1996/08/21 21:55:48 dyson Exp $
* $Id: nfs_serv.c,v 1.32 1996/09/03 14:24:59 bde Exp $
*/
/*
@ -2899,6 +2899,7 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq)
nfsm_srvpostop_attr(getret, &at);
return (0);
}
vput(nvp);
dirlen = len = NFSX_V3POSTOPATTR + NFSX_V3COOKIEVERF + 2 * NFSX_UNSIGNED;
nfsm_reply(cnt);

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94
* $Id: nfs_serv.c,v 1.31 1996/08/21 21:55:48 dyson Exp $
* $Id: nfs_serv.c,v 1.32 1996/09/03 14:24:59 bde Exp $
*/
/*
@ -2899,6 +2899,7 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq)
nfsm_srvpostop_attr(getret, &at);
return (0);
}
vput(nvp);
dirlen = len = NFSX_V3POSTOPATTR + NFSX_V3COOKIEVERF + 2 * NFSX_UNSIGNED;
nfsm_reply(cnt);