From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 00/21] vfs: atomic open v6 (part 2) Date: Mon, 18 Jun 2012 09:12:52 -0400 Message-ID: <20120618131252.GA21931@infradead.org> References: <1338901832-14049-1-git-send-email-miklos@szeredi.hu> <20120610034921.GB30000@ZenIV.linux.org.uk> <20120610111056.GD30000@ZenIV.linux.org.uk> <20120610175605.GE30000@ZenIV.linux.org.uk> <20120610222745.GG30000@ZenIV.linux.org.uk> <20120617203755.GA31478@infradead.org> <20120618115804.GA4048@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, hch@infradead.org, torvalds@linux-foundation.org, dhowells@redhat.com, mszeredi@suse.cz To: Al Viro Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:35218 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992Ab2FRNM4 (ORCPT ); Mon, 18 Jun 2012 09:12:56 -0400 Content-Disposition: inline In-Reply-To: <20120618115804.GA4048@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: And here is fix number two, to be folded into the same commit: Index: linux-2.6/fs/namei.c =================================================================== --- linux-2.6.orig/fs/namei.c 2012-06-18 15:01:47.540350941 +0200 +++ linux-2.6/fs/namei.c 2012-06-18 15:01:48.160350957 +0200 @@ -640,7 +640,8 @@ follow_link(struct path *link, struct na } } if (unlikely(error)) - put_link(nd, link, p); + put_link(nd, link, *p); + return error; out_put_nd_path: