From owner-cvs-all Sun Feb 17 16:26:15 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BCDF937B400; Sun, 17 Feb 2002 16:26:10 -0800 (PST) Received: (from rwatson@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1I0QAi27797; Sun, 17 Feb 2002 16:26:10 -0800 (PST) (envelope-from rwatson) Message-Id: <200202180026.g1I0QAi27797@freefall.freebsd.org> From: Robert Watson Date: Sun, 17 Feb 2002 16:26:10 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rwatson 2002/02/17 16:26:10 PST Modified files: sys/kern vfs_vnops.c Log: When vn_open() is failing because it cannot allocate a vm object, call VOP_CLOSE() on the vnode, so that VOP_OPEN() and VOP_CLOSE() calls are symmetric in all failure cases. This prevents an 'open' reference from being leaked in that unlikely failure scenario. Revision Changes Path 1.131 +1 -1 src/sys/kern/vfs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message