]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
binfmt_elf-fix-corner-case-kfree-of-uninitialized-data-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Nov 2012 03:04:55 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:16 +0000 (15:55 +1100)
WARNING: line over 80 characters
#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
#26: FILE: fs/binfmt_elf.c:1606:
+        }$

WARNING: please, no spaces at the start of a line
#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>
fs/binfmt_elf.c

index 1dc9b185e33ddbb6d844cde87209ed47b6801212..0c42cdbabecff0c4c8d9d0e597273ff4fce79507 100644 (file)
@@ -1602,9 +1602,9 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
 
        psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL);
        if (psinfo == NULL) {
-               info->psinfo.data = NULL;       /* So we don't free this wrongly */
+               info->psinfo.data = NULL; /* So we don't free this wrongly */
                return 0;
-        }
+       }
 
        fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo);