summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-01-10 11:02:39 -0800
committerAl Viro <viro@zeniv.linux.org.uk>2008-02-01 14:24:51 -0500
commitef00be0554f1af9f2b685e0e3bb9e2ec0181937e (patch)
tree54827faae4e5bcd81fa6b4a17c80ed9990b69cf2 /kernel
parentb593d384efcff7bdf6beb1bc1bc69927977aee26 (diff)
[patch 1/2] kernel/audit.c: warning fix
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 1242021c7a6..b617f69fd4e 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -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;