Skip to content

Commit e7cd5f8

Browse files
akpm00sfrothwell
authored andcommitted
binfmt_elf-fix-corner-case-kfree-of-uninitialized-data-checkpatch-fixes
WARNING: line over 80 characters torvalds#24: FILE: fs/binfmt_elf.c:1604: + info->psinfo.data = NULL; /* So we don't free this wrongly */ ERROR: code indent should use tabs where possible torvalds#26: FILE: fs/binfmt_elf.c:1606: + }$ WARNING: please, no spaces at the start of a line torvalds#26: FILE: fs/binfmt_elf.c:1606: + }$ total: 1 errors, 2 warnings, 11 lines checked NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/binfmt_elf-fix-corner-case-kfree-of-uninitialized-data.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Alan Cox <alan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 2985838 commit e7cd5f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/binfmt_elf.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1602,9 +1602,9 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
16021602

16031603
psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL);
16041604
if (psinfo == NULL) {
1605-
info->psinfo.data = NULL; /* So we don't free this wrongly */
1605+
info->psinfo.data = NULL; /* So we don't free this wrongly */
16061606
return 0;
1607-
}
1607+
}
16081608

16091609
fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);
16101610

0 commit comments

Comments
 (0)