diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-02-10 10:46:09 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 19:51:34 +0100 |
commit | 11f57cedcf382574a1e41d6cec2349f287fcea67 (patch) | |
tree | a8f2e930a6ef2a5aba1c63e254e41c731ac5c77b /arch/ia64 | |
parent | [PATCH] ext4: refuse ro to rw remount of fs with orphan inodes (diff) | |
download | linux-11f57cedcf382574a1e41d6cec2349f287fcea67.tar.xz linux-11f57cedcf382574a1e41d6cec2349f287fcea67.zip |
[PATCH] audit: fix audit_filter_user_rules() initialization bug
gcc emits this warning:
kernel/auditfilter.c: In function 'audit_filter_user':
kernel/auditfilter.c:1611: warning: 'state' is used uninitialized in this function
I tend to agree with gcc - there are a couple of plausible exit paths from
audit_filter_user_rules() where it does not set 'state', keeping the
variable uninitialized. For example if a filter rule has an AUDIT_POSSIBLE
action. Initialize to 'wont audit'. Fix whitespace damage too.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions