Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756217AbYLEJle (ORCPT ); Fri, 5 Dec 2008 04:41:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751730AbYLEJl0 (ORCPT ); Fri, 5 Dec 2008 04:41:26 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:47728 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbYLEJl0 (ORCPT ); Fri, 5 Dec 2008 04:41:26 -0500 Date: Fri, 5 Dec 2008 04:41:15 -0500 From: Christoph Hellwig To: David Howells Cc: torvalds@osdl.org, akpm@linux-foundation.org, bfields@fieldses.org, hch@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] EXPORTFS: Don't return NULL from fh_to_dentry()/fh_to_parent() Message-ID: <20081205094115.GA27695@infradead.org> References: <20081205091255.26127.91011.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081205091255.26127.91011.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 857 Lines: 19 On Fri, Dec 05, 2008 at 09:12:56AM +0000, David Howells wrote: > Returning NULL from fh_to_dentry() and fh_to_parent() is not permitted, so > return -ESTALE instead. exportfs_decode_fh() does not check for NULL, but > will try to dereference it as IS_ERR() does not check for it. > > The generic_fh_to_dentry() and generic_fh_to_parent() functions also no longer > return NULL, but return -ESTALE instead. > > Signed-off-by: David Howells > Acked-by: J. Bruce Fields Looks good, thanks. Linus, this is regression introduced in 2.6.28 by me, so please apply. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/