sys_prctl(): coding-style cleanup
Remove a tabstop from the switch statement, in the usual fashion. A few instances of weirdwrapping were removed as a result. Cc: Chen Gang <gang.chen@asianux.com> Cc: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7fe5e04292
commit
f3cbd435b0
1 changed files with 151 additions and 153 deletions
|
@ -2027,8 +2027,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||
error = get_dumpable(me->mm);
|
||||
break;
|
||||
case PR_SET_DUMPABLE:
|
||||
if (arg2 != SUID_DUMP_DISABLE &&
|
||||
arg2 != SUID_DUMP_USER) {
|
||||
if (arg2 != SUID_DUMP_DISABLE && arg2 != SUID_DUMP_USER) {
|
||||
error = -EINVAL;
|
||||
break;
|
||||
}
|
||||
|
@ -2070,8 +2069,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|||
break;
|
||||
case PR_GET_NAME:
|
||||
get_task_comm(comm, me);
|
||||
if (copy_to_user((char __user *)arg2, comm,
|
||||
sizeof(comm)))
|
||||
if (copy_to_user((char __user *)arg2, comm, sizeof(comm)))
|
||||
return -EFAULT;
|
||||
break;
|
||||
case PR_GET_ENDIAN:
|
||||
|
|
Loading…
Reference in a new issue