Explorar o código

[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>
Andrew Morton %!s(int64=17) %!d(string=hai) anos
pai
achega
ef00be0554
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      kernel/audit.c

+ 1 - 1
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 audit_buffer	*ab	= NULL;
 	struct timespec		t;
 	struct timespec		t;
-	unsigned int		serial;
+	unsigned int		uninitialized_var(serial);
 	int reserve;
 	int reserve;
 	unsigned long timeout_start = jiffies;
 	unsigned long timeout_start = jiffies;