From owner-cvs-src@FreeBSD.ORG Wed Feb 13 13:02:13 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D89DA16A4A5; Wed, 13 Feb 2008 13:02:13 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B18F813C465; Wed, 13 Feb 2008 13:02:13 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1DD2DhV075036; Wed, 13 Feb 2008 13:02:13 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1DD2CsR075035; Wed, 13 Feb 2008 13:02:12 GMT (envelope-from attilio) Message-Id: <200802131302.m1DD2CsR075035@repoman.freebsd.org> From: Attilio Rao Date: Wed, 13 Feb 2008 13:02:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/ntfs ntfs_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 13:02:14 -0000 attilio 2008-02-13 13:02:12 UTC FreeBSD src repository Modified files: sys/fs/ntfs ntfs_subr.c Log: Fix a lock leak in the ntfs locking scheme: When ntfs_ntput() reaches 0 in the refcount the inode lockmgr is not released and directly destroyed. Fix this by unlocking the lockmgr() even in the case of zero-refcount. Reported by: dougb, yar, Scot Hetzel Submitted by: yar Revision Changes Path 1.45 +1 -1 src/sys/fs/ntfs/ntfs_subr.c