Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333894
b: refs/heads/master
c: 9cec9d6
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Al Viro committed Oct 12, 2012
1 parent e91d2f8 commit e2baf5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 1c2e51e8c162417d2831007ec256ede06c3a0201
refs/heads/master: 9cec9d68ae53aae60b4a1fca4505c75a1d026392
6 changes: 5 additions & 1 deletion trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2147,11 +2147,15 @@ void __audit_inode(const char *name, const struct dentry *dentry)
if (!context->in_syscall)
return;

if (!name)
goto out_alloc;

list_for_each_entry_reverse(n, &context->names_list, list) {
if (n->name && (n->name == name))
if (n->name == name)
goto out;
}

out_alloc:
/* unable to find the name from a previous getname() */
n = audit_alloc_name(context);
if (!n)
Expand Down

0 comments on commit e2baf5e

Please sign in to comment.