summaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-08-03 15:34:39 +0300
committerPaul Moore <paul@paul-moore.com>2020-08-18 03:28:17 +0300
commit265c32072b0ce4156f40527a969d335d03681b30 (patch)
treecca540b297d20391c13e5640a179590744c5b1ce /kernel/audit.c
parent6b87024f76bc755354c18116880dc3b632447cbd (diff)
downloadlinux-265c32072b0ce4156f40527a969d335d03681b30.tar.xz
audit: uninitialize variable audit_sig_sid
Checkpatch tool reports "ERROR: do not initialise globals/statics to 0" To fix this, audit_sig_sid is uninitialized As this is stored in the .bss section, the compiler can initialize the variable automatically. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 5cf4781d5546..86f2b76e3d4e 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -125,7 +125,7 @@ static u32 audit_backlog_wait_time = AUDIT_BACKLOG_WAIT_TIME;
/* The identity of the user shutting down the audit system. */
static kuid_t audit_sig_uid = INVALID_UID;
static pid_t audit_sig_pid = -1;
-static u32 audit_sig_sid = 0;
+static u32 audit_sig_sid;
/* Records can be lost in several ways:
0) [suppressed in audit_alloc]