* [PATCH] audit: fix uninitialized variable in audit_add_rule()
@ 2015-08-05 15:22 Paul Moore
0 siblings, 0 replies; only message in thread
From: Paul Moore @ 2015-08-05 15:22 UTC (permalink / raw)
To: linux-audit; +Cc: rgb
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 <rgb@redhat.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
---
kernel/auditfilter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 4cb9b44..83f6d29 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -861,7 +861,7 @@ static inline int audit_add_rule(struct audit_entry *entry)
struct audit_watch *watch = entry->rule.watch;
struct audit_tree *tree = entry->rule.tree;
struct list_head *list;
- int err;
+ int err = 0;
#ifdef CONFIG_AUDITSYSCALL
int dont_count = 0;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-05 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 15:22 [PATCH] audit: fix uninitialized variable in audit_add_rule() Paul Moore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox