From owner-svn-src-stable-8@FreeBSD.ORG Wed Aug 31 06:47:40 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 648C2106566B; Wed, 31 Aug 2011 06:47:40 +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 535B88FC0A; Wed, 31 Aug 2011 06:47:40 +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 p7V6ldu3086959; Wed, 31 Aug 2011 06:47:39 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7V6ldpx086957; Wed, 31 Aug 2011 06:47:39 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201108310647.p7V6ldpx086957@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Wed, 31 Aug 2011 06:47:39 +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: r225282 - stable/8/sys/ufs/ufs 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: Wed, 31 Aug 2011 06:47:40 -0000 Author: ae Date: Wed Aug 31 06:47:39 2011 New Revision: 225282 URL: http://svn.freebsd.org/changeset/base/225282 Log: MFC r225104: Fix lock leak. Reported by: Alex Lyashkov Modified: stable/8/sys/ufs/ufs/ufs_extattr.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/ufs/ufs/ufs_extattr.c ============================================================================== --- stable/8/sys/ufs/ufs/ufs_extattr.c Wed Aug 31 06:35:50 2011 (r225281) +++ stable/8/sys/ufs/ufs/ufs_extattr.c Wed Aug 31 06:47:39 2011 (r225282) @@ -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);