From owner-svn-src-head@FreeBSD.ORG Tue Aug 23 08:47:27 2011 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 BFCE6106564A; Tue, 23 Aug 2011 08:47:27 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AFD0A8FC13; Tue, 23 Aug 2011 08:47:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7N8lROq092645; Tue, 23 Aug 2011 08:47:27 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7N8lRO2092643; Tue, 23 Aug 2011 08:47:27 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201108230847.p7N8lRO2092643@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Tue, 23 Aug 2011 08:47:27 +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: r225104 - head/sys/ufs/ufs 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: Tue, 23 Aug 2011 08:47:27 -0000 Author: ae Date: Tue Aug 23 08:47:27 2011 New Revision: 225104 URL: http://svn.freebsd.org/changeset/base/225104 Log: Fix lock leak. Reported by: Alex Lyashkov Approved by: re (kib) MFC after: 1 week Modified: head/sys/ufs/ufs/ufs_extattr.c Modified: head/sys/ufs/ufs/ufs_extattr.c ============================================================================== --- head/sys/ufs/ufs/ufs_extattr.c Tue Aug 23 07:42:04 2011 (r225103) +++ head/sys/ufs/ufs/ufs_extattr.c Tue Aug 23 08:47:27 2011 (r225104) @@ -1031,14 +1031,14 @@ vop_setextattr { struct ufsmount *ump = VFSTOUFS(mp); int error; - ufs_extattr_uepm_lock(ump, ap->a_td); - /* * XXX: No longer a supported way to delete extended attributes. */ if (ap->a_uio == NULL) return (EINVAL); + ufs_extattr_uepm_lock(ump, ap->a_td); + error = ufs_extattr_set(ap->a_vp, ap->a_attrnamespace, ap->a_name, ap->a_uio, ap->a_cred, ap->a_td);