Commit ae9d2fb4 authored by Paul Moore's avatar Paul Moore

audit: fix uninitialized variable in audit_add_rule()

As reported by the 0-Day testing service:

   kernel/auditfilter.c: In function 'audit_rule_change':
>> kernel/auditfilter.c:864:6: warning: 'err' may be used uninit...
     int err;

Cc: Richard Guy Briggs <>
Signed-off-by: default avatarPaul Moore <>
parent aa7c043d
...@@ -861,7 +861,7 @@ static inline int audit_add_rule(struct audit_entry *entry) ...@@ -861,7 +861,7 @@ static inline int audit_add_rule(struct audit_entry *entry)
struct audit_watch *watch = entry->; struct audit_watch *watch = entry->;
struct audit_tree *tree = entry->rule.tree; struct audit_tree *tree = entry->rule.tree;
struct list_head *list; struct list_head *list;
int err; int err = 0;
int dont_count = 0; int dont_count = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment