From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Josef 'Jeff' Sipek" Subject: [PATCH 1/2] fs: Fix indentation in do_path_lookup Date: Sun, 6 May 2007 13:47:55 -0400 Message-ID: <1178473676100-git-send-email-jsipek@cs.sunysb.edu> References: <11784736762516-git-send-email-jsipek@cs.sunysb.edu> Cc: hch@infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "Josef 'Jeff' Sipek" To: torvalds@linux-foundation.org, akpm@linux-foundation.org Return-path: In-Reply-To: <11784736762516-git-send-email-jsipek@cs.sunysb.edu> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Signed-off-by: Josef 'Jeff' Sipek --- fs/namei.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 7a98676..2a5c232 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1159,11 +1159,9 @@ static int fastcall do_path_lookup(int dfd, const char *name, current->total_link_count = 0; retval = link_path_walk(name, nd); out: - if (likely(retval == 0)) { - if (unlikely(!audit_dummy_context() && nd && nd->dentry && + if (unlikely(!retval && !audit_dummy_context() && nd->dentry && nd->dentry->d_inode)) audit_inode(name, nd->dentry->d_inode); - } out_fail: return retval; -- 1.5.2.rc1.20.g86b9