]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[patch 1/2] kernel/audit.c: warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jan 2008 19:02:39 +0000 (11:02 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Feb 2008 19:24:51 +0000 (14:24 -0500)
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>
kernel/audit.c

index 1242021c7a6d53247e22f8fb8eba65b559eaeef3..b617f69fd4e87b86c6c13b7711b3e248caabaa5f 100644 (file)
@@ -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;