Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752331Ab0K3NgP (ORCPT ); Tue, 30 Nov 2010 08:36:15 -0500 Received: from smtp-out0.tiscali.nl ([195.241.79.175]:54045 "EHLO smtp-out0.tiscali.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093Ab0K3NgO (ORCPT ); Tue, 30 Nov 2010 08:36:14 -0500 X-Greylist: delayed 998 seconds by postgrey-1.27 at vger.kernel.org; Tue, 30 Nov 2010 08:36:14 EST Subject: Re: [PATCH] DOCUMENTATION: Correct inline docs to match parm name. From: Paul Bolle To: "Robert P. J. Day" Cc: Linux Kernel Mailing List , Randy Dunlap Date: Tue, 30 Nov 2010 14:19:29 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 2.91.2 (2.91.2-1.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1291123175.1992.7.camel@localhost.localdomain> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 41 On Tue, 2010-11-30 at 06:31 -0500, Robert P. J. Day wrote: > @@ -1485,7 +1485,7 @@ out: > /** > * d_validate - verify dentry provided from insecure source > * @dentry: The dentry alleged to be valid child of @dparent Doesn't this one needs to be changed too? > - * @dparent: The parent dentry (known to be valid) > + * @parent: The parent dentry (known to be valid) > * > * An insecure source has sent us a dentry, here we verify it and dget() it. > * This is used by ncpfs in its readdir implementation. By the way, the code currently reads: int d_validate(struct dentry *dentry, struct dentry *parent) { [...] rcu_read_lock(); hlist_for_each_entry_rcu(d, node, head, d_hash) { if (d == dentry) { dget(dentry); return 1; } } rcu_read_unlock(); return 0; } I know nothing about rcu_read_lock(), but why is there no rcu_read_unlock() before the "return 1" case? Paul Bolle -- 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/