From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] ecryptfs: Fix refcnt leak on ecryptfs_follow_link() error path Date: Wed, 13 Jan 2010 19:44:58 +0000 Message-ID: <20100113194458.GB4673@ZenIV.linux.org.uk> References: <87my0kjxpd.fsf@devron.myhome.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Tyler Hicks , Dustin Kirkland , ecryptfs-devel@lists.launchpad.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: OGAWA Hirofumi Return-path: Content-Disposition: inline In-Reply-To: <87my0kjxpd.fsf@devron.myhome.or.jp> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jan 12, 2010 at 03:36:14AM +0900, OGAWA Hirofumi wrote: > > If ->follow_link handler return the error, it should decrement > nd->path refcnt. But, ecryptfs_follow_link() doesn't decrement. > > This patch fix it by using usual nd_set_link() style error handling, > instead of playing with nd->path. Applied.