Skip to content

Commit

Permalink
[patch 1/2] kernel/audit.c: warning fix
Browse files Browse the repository at this point in the history
kernel/audit.c: In function 'audit_log_start':
kernel/audit.c:1133: warning: 'serial' may be used uninitialized in this function

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Al Viro committed Feb 1, 2008
1 parent b593d38 commit ef00be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
{
struct audit_buffer *ab = NULL;
struct timespec t;
unsigned int serial;
unsigned int uninitialized_var(serial);
int reserve;
unsigned long timeout_start = jiffies;

Expand Down

0 comments on commit ef00be0

Please sign in to comment.