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 f4a7756f999c..4d1bd62b090b 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -2212,7 +2212,7 @@ void __audit_inode_child(const struct dentry *dentry, | |||
2212 | if (!strcmp(dname, n->name) || | 2212 | if (!strcmp(dname, n->name) || |
2213 | !audit_compare_dname_path(dname, n->name, &dirlen)) { | 2213 | !audit_compare_dname_path(dname, n->name, &dirlen)) { |
2214 | if (inode) | 2214 | if (inode) |
2215 | audit_copy_inode(n, NULL, inode); | 2215 | audit_copy_inode(n, dentry, inode); |
2216 | else | 2216 | else |
2217 | n->ino = (unsigned long)-1; | 2217 | n->ino = (unsigned long)-1; |
2218 | found_child = n->name; | 2218 | found_child = n->name; |
@@ -2244,7 +2244,7 @@ add_names: | |||
2244 | } | 2244 | } |
2245 | 2245 | ||
2246 | if (inode) | 2246 | if (inode) |
2247 | audit_copy_inode(n, NULL, inode); | 2247 | audit_copy_inode(n, dentry, inode); |
2248 | } | 2248 | } |
2249 | } | 2249 | } |
2250 | EXPORT_SYMBOL_GPL(__audit_inode_child); | 2250 | EXPORT_SYMBOL_GPL(__audit_inode_child); |