Skip to contentSkip to conversation

ptrace: correctly indent return statement

PATCH New Christian Brauner 1 participant 1 message Dec 21, 2017 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptrace: correctly indent return statement

This has been bugging me the whole time I read through that code. Enough so to send a patch for this trivial thing.

---
 kernel/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/ptrace.c +1 -1
index 84b1367935e4..374a0d4fd022 100644
@@ -326,7 +326,7 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode)
 	if (mm &&
 	    ((get_dumpable(mm) != SUID_DUMP_USER) &&
 	     !ptrace_has_cap(mm->user_ns, mode)))
-	    return -EPERM;
+		return -EPERM;
 
 	return security_ptrace_access_check(task, mode);
 }
Signature · 1 line
2.14.1