From owner-svn-src-head@FreeBSD.ORG Fri Dec 12 11:10:10 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D22F1065670; Fri, 12 Dec 2008 11:10:10 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1F38FC08; Fri, 12 Dec 2008 11:10:10 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBCBAAPS095833; Fri, 12 Dec 2008 11:10:10 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBCBAAWI095832; Fri, 12 Dec 2008 11:10:10 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <200812121110.mBCBAAWI095832@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 12 Dec 2008 11:10:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r185980 - head/sys/fs/devfs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 11:10:10 -0000 Author: kib Date: Fri Dec 12 11:10:10 2008 New Revision: 185980 URL: http://svn.freebsd.org/changeset/base/185980 Log: Do not leak defs_de_interlock on error. Another pointy hat for my collection. Modified: head/sys/fs/devfs/devfs_vnops.c Modified: head/sys/fs/devfs/devfs_vnops.c ============================================================================== --- head/sys/fs/devfs/devfs_vnops.c Fri Dec 12 07:34:42 2008 (r185979) +++ head/sys/fs/devfs/devfs_vnops.c Fri Dec 12 11:10:10 2008 (r185980) @@ -241,8 +241,10 @@ devfs_vptocnp(struct vop_vptocnp_args *a mtx_unlock(&devfs_de_interlock); vholdl(*dvp); VI_UNLOCK(*dvp); - } else + } else { + mtx_unlock(&devfs_de_interlock); error = ENOENT; + } finished: sx_xunlock(&dmp->dm_lock); return (error);