Skip to content

Commit 007cca1

Browse files
akpm00sfrothwell
authored andcommitted
tomoyo-reduce-mmap_sem-hold-for-mm-exe_file-checkpatch-fixes
Sumeone needs to buy a tab key. WARNING: please, no spaces at the start of a line torvalds#29: FILE: security/tomoyo/util.c:951: + struct file *exe_file;$ WARNING: please, no spaces at the start of a line torvalds#30: FILE: security/tomoyo/util.c:952: + const char *cp;$ WARNING: please, no spaces at the start of a line torvalds#31: FILE: security/tomoyo/util.c:953: + struct mm_struct *mm = current->mm;$ WARNING: please, no spaces at the start of a line torvalds#40: FILE: security/tomoyo/util.c:955: + if (!mm)$ WARNING: suspect code indent for conditional statements (7, 15) torvalds#40: FILE: security/tomoyo/util.c:955: + if (!mm) + return NULL; WARNING: please, no spaces at the start of a line torvalds#42: FILE: security/tomoyo/util.c:957: + exe_file = get_mm_exe_file(mm);$ WARNING: please, no spaces at the start of a line torvalds#43: FILE: security/tomoyo/util.c:958: + if (!exe_file)$ WARNING: suspect code indent for conditional statements (7, 15) torvalds#43: FILE: security/tomoyo/util.c:958: + if (!exe_file) + return NULL; WARNING: please, no spaces at the start of a line torvalds#46: FILE: security/tomoyo/util.c:961: + cp = tomoyo_realpath_from_path(&exe_file->f_path);$ WARNING: please, no spaces at the start of a line torvalds#47: FILE: security/tomoyo/util.c:962: + fput(exe_file);$ WARNING: please, no spaces at the start of a line torvalds#48: FILE: security/tomoyo/util.c:963: + return cp;$ total: 0 errors, 11 warnings, 28 lines checked ./patches/tomoyo-reduce-mmap_sem-hold-for-mm-exe_file.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: Davidlohr Bueso <[email protected]> Cc: James Morris <[email protected]> Cc: Tetsuo Handa <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ed0066f commit 007cca1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

security/tomoyo/util.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -948,19 +948,19 @@ bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename,
948948
*/
949949
const char *tomoyo_get_exe(void)
950950
{
951-
struct file *exe_file;
952-
const char *cp;
953-
struct mm_struct *mm = current->mm;
951+
struct file *exe_file;
952+
const char *cp;
953+
struct mm_struct *mm = current->mm;
954954

955-
if (!mm)
956-
return NULL;
957-
exe_file = get_mm_exe_file(mm);
958-
if (!exe_file)
959-
return NULL;
955+
if (!mm)
956+
return NULL;
957+
exe_file = get_mm_exe_file(mm);
958+
if (!exe_file)
959+
return NULL;
960960

961-
cp = tomoyo_realpath_from_path(&exe_file->f_path);
962-
fput(exe_file);
963-
return cp;
961+
cp = tomoyo_realpath_from_path(&exe_file->f_path);
962+
fput(exe_file);
963+
return cp;
964964
}
965965

966966
/**

0 commit comments

Comments
 (0)