From patchwork Mon Jul 4 16:48:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 9212951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 41FBC60752 for ; Mon, 4 Jul 2016 16:49:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3133528742 for ; Mon, 4 Jul 2016 16:49:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24C222874C; Mon, 4 Jul 2016 16:49:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6415B28742 for ; Mon, 4 Jul 2016 16:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752158AbcGDQtl (ORCPT ); Mon, 4 Jul 2016 12:49:41 -0400 Received: from lists.s-osg.org ([54.187.51.154]:45769 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900AbcGDQtk (ORCPT ); Mon, 4 Jul 2016 12:49:40 -0400 Received: from localhost.localdomain (unknown [212.250.200.210]) by lists.s-osg.org (Postfix) with ESMTPSA id 9B3B8E268F; Mon, 4 Jul 2016 09:50:53 -0700 (PDT) From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, Luis de Bethencourt Subject: [PATCH] vfs: fix typo in link_path_walk() Date: Mon, 4 Jul 2016 17:48:53 +0100 Message-Id: <1467650933-20089-1-git-send-email-luisbg@osg.samsung.com> X-Mailer: git-send-email 2.6.4 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Comment documenting the path parsing in link_path_walk() has a typo, fixing it. Signed-off-by: Luis de Bethencourt --- Hello, Noticed this typo while studying the code paths when sys_open is called. Thanks, Luis fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index 32f9fe9..ade7667 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2064,7 +2064,7 @@ static int link_path_walk(const char *name, struct nameidata *nd) if (!*name) goto OK; /* - * If it wasn't NUL, we know it was '/'. Skip that + * If it wasn't NULL, we know it was '/'. Skip that * slash, and continue until no more slashes. */ do {