aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/auditfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 713098ee5a02..19c0a0a2cede 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -1320,6 +1320,8 @@ static inline int audit_add_rule(struct audit_entry *entry)
1320 mutex_unlock(&audit_filter_mutex); 1320 mutex_unlock(&audit_filter_mutex);
1321 goto error; 1321 goto error;
1322 } 1322 }
1323 /* entry->rule.watch may have changed during audit_add_watch() */
1324 watch = entry->rule.watch;
1323 h = audit_hash_ino((u32)watch->ino); 1325 h = audit_hash_ino((u32)watch->ino);
1324 list = &audit_inode_hash[h]; 1326 list = &audit_inode_hash[h];
1325 } 1327 }