[patch 1/2] kernel/audit.c: warning fix

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, February 1, 2008 - 3:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef00be...
Commit:     ef00be0554f1af9f2b685e0e3bb9e2ec0181937e
Parent:     b593d384efcff7bdf6beb1bc1bc69927977aee26
Author:     Andrew Morton <akpm@linux-foundation.org>
AuthorDate: Thu Jan 10 11:02:39 2008 -0800
Committer:  Al Viro <viro@zeniv.linux.org.uk>
CommitDate: Fri Feb 1 14:24:51 2008 -0500

    [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>
---
 kernel/audit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/audit.c b/kernel/audit.c
index 1242021..b617f69 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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/2] kernel/audit.c: warning fix, Linux Kernel Mailing ..., (Fri Feb 1, 3:59 pm)