diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index b87b28947acc..09c7b6b4f8e6 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -2222,7 +2222,7 @@ void __audit_inode_child(const struct inode *parent, | |||
2222 | continue; | 2222 | continue; |
2223 | 2223 | ||
2224 | if (n->ino == parent->i_ino && | 2224 | if (n->ino == parent->i_ino && |
2225 | !audit_compare_dname_path(dname, n->name, NULL)) { | 2225 | !audit_compare_dname_path(dname, n->name)) { |
2226 | found_parent = n->name; | 2226 | found_parent = n->name; |
2227 | goto add_names; | 2227 | goto add_names; |
2228 | } | 2228 | } |
@@ -2235,7 +2235,7 @@ void __audit_inode_child(const struct inode *parent, | |||
2235 | 2235 | ||
2236 | /* strcmp() is the more likely scenario */ | 2236 | /* strcmp() is the more likely scenario */ |
2237 | if (!strcmp(dname, n->name) || | 2237 | if (!strcmp(dname, n->name) || |
2238 | !audit_compare_dname_path(dname, n->name, NULL)) { | 2238 | !audit_compare_dname_path(dname, n->name)) { |
2239 | if (inode) | 2239 | if (inode) |
2240 | audit_copy_inode(n, dentry, inode); | 2240 | audit_copy_inode(n, dentry, inode); |
2241 | else | 2241 | else |