mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
[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>
This commit is contained in:
parent
b593d384ef
commit
ef00be0554
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue