Skip to content

Commit 265c320

Browse files
irengepcmoore
authored andcommitted
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>
1 parent 6b87024 commit 265c320

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static u32 audit_backlog_wait_time = AUDIT_BACKLOG_WAIT_TIME;
125125
/* The identity of the user shutting down the audit system. */
126126
static kuid_t audit_sig_uid = INVALID_UID;
127127
static pid_t audit_sig_pid = -1;
128-
static u32 audit_sig_sid = 0;
128+
static u32 audit_sig_sid;
129129

130130
/* Records can be lost in several ways:
131131
0) [suppressed in audit_alloc]

0 commit comments

Comments
 (0)