Skip to content

Commit 1d7bb6c

Browse files
akpm00hnaz
authored andcommitted
ima-demonstration-code-for-kexec-buffer-passing-checkpatch-fixes
ERROR: do not initialise globals to NULL torvalds#168: FILE: security/integrity/ima/ima_template.c:188: +void *kexec_buffer = NULL; ERROR: do not initialise globals to 0 torvalds#169: FILE: security/integrity/ima/ima_template.c:189: +size_t kexec_buffer_size = 0; ERROR: do not initialise globals to 0 torvalds#172: FILE: security/integrity/ima/ima_template.c:192: +unsigned long kexec_buffer_load_addr = 0; total: 3 errors, 0 warnings, 196 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/ima-demonstration-code-for-kexec-buffer-passing.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Thiago Jung Bauermann <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 28e93c8 commit 1d7bb6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/integrity/ima/ima_template.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ static int template_desc_init_fields(const char *template_fmt,
185185
}
186186

187187
#ifdef CONFIG_KEXEC_FILE
188-
void *kexec_buffer = NULL;
189-
size_t kexec_buffer_size = 0;
188+
void *kexec_buffer;
189+
size_t kexec_buffer_size;
190190

191191
/* Physical address of the measurement buffer in the next kernel. */
192-
unsigned long kexec_buffer_load_addr = 0;
192+
unsigned long kexec_buffer_load_addr;
193193

194194
/*
195195
* Called during reboot. IMA can add here new events that were generated after

0 commit comments

Comments
 (0)