Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19975
b: refs/heads/master
c: 3bc8414
h: refs/heads/master
i:
  19973: ad911ca
  19971: 009b9d8
  19967: 2ae2470
v: v3
  • Loading branch information
Suzuki authored and Linus Torvalds committed Feb 8, 2006
1 parent b999ddb commit 61042b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c00a76aea339b427b47ddc28de06dee0a652e801
refs/heads/master: 3bc8414b079ec372485c99ed1f33c6c42ca9d756
6 changes: 4 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,11 @@ static int fastcall do_path_lookup(int dfd, const char *name,
current->total_link_count = 0;
retval = link_path_walk(name, nd);
out:
if (unlikely(current->audit_context
&& nd && nd->dentry && nd->dentry->d_inode))
if (likely(retval == 0)) {
if (unlikely(current->audit_context && nd && nd->dentry &&
nd->dentry->d_inode))
audit_inode(name, nd->dentry->d_inode, flags);
}
return retval;

fput_unlock_fail:
Expand Down

0 comments on commit 61042b2

Please sign in to comment.