From owner-svn-src-stable-8@FreeBSD.ORG Mon Jan 17 01:11:07 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21A751065670; Mon, 17 Jan 2011 01:11:07 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 106CD8FC13; Mon, 17 Jan 2011 01:11:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0H1B6Ct083377; Mon, 17 Jan 2011 01:11:06 GMT (envelope-from rmacklem@svn.freebsd.org) Received: (from rmacklem@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0H1B6wM083375; Mon, 17 Jan 2011 01:11:06 GMT (envelope-from rmacklem@svn.freebsd.org) Message-Id: <201101170111.p0H1B6wM083375@svn.freebsd.org> From: Rick Macklem Date: Mon, 17 Jan 2011 01:11:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217494 - stable/8/sys/fs/nfsserver X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2011 01:11:07 -0000 Author: rmacklem Date: Mon Jan 17 01:11:06 2011 New Revision: 217494 URL: http://svn.freebsd.org/changeset/base/217494 Log: MFC: r216898 Fix the experimental NFS server so that it doesn't leak a reference count on the directory when creating device special files. Modified: stable/8/sys/fs/nfsserver/nfs_nfsdport.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/fs/nfsserver/nfs_nfsdport.c ============================================================================== --- stable/8/sys/fs/nfsserver/nfs_nfsdport.c Mon Jan 17 00:59:04 2011 (r217493) +++ stable/8/sys/fs/nfsserver/nfs_nfsdport.c Mon Jan 17 01:11:06 2011 (r217494) @@ -857,8 +857,7 @@ nfsvno_mknod(struct nameidata *ndp, stru &ndp->ni_cnd, &nvap->na_vattr); vput(ndp->ni_dvp); nfsvno_relpathbuf(ndp); - if (error) - vrele(ndp->ni_startdir); + vrele(ndp->ni_startdir); /* * Since VOP_MKNOD returns the ni_vp, I can't * see any reason to do the lookup.