Commit f3cbd435 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7fe5e042
...@@ -2027,8 +2027,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, ...@@ -2027,8 +2027,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
error = get_dumpable(me->mm); error = get_dumpable(me->mm);
break; break;
case PR_SET_DUMPABLE: case PR_SET_DUMPABLE:
if (arg2 != SUID_DUMP_DISABLE && if (arg2 != SUID_DUMP_DISABLE && arg2 != SUID_DUMP_USER) {
arg2 != SUID_DUMP_USER) {
error = -EINVAL; error = -EINVAL;
break; break;
} }
...@@ -2061,7 +2060,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, ...@@ -2061,7 +2060,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
error = -EINVAL; error = -EINVAL;
break; break;
case PR_SET_NAME: case PR_SET_NAME:
comm[sizeof(me->comm)-1] = 0; comm[sizeof(me->comm) - 1] = 0;
if (strncpy_from_user(comm, (char __user *)arg2, if (strncpy_from_user(comm, (char __user *)arg2,
sizeof(me->comm) - 1) < 0) sizeof(me->comm) - 1) < 0)
return -EFAULT; return -EFAULT;
...@@ -2070,8 +2069,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, ...@@ -2070,8 +2069,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
break; break;
case PR_GET_NAME: case PR_GET_NAME:
get_task_comm(comm, me); get_task_comm(comm, me);
if (copy_to_user((char __user *)arg2, comm, if (copy_to_user((char __user *)arg2, comm, sizeof(comm)))
sizeof(comm)))
return -EFAULT; return -EFAULT;
break; break;
case PR_GET_ENDIAN: case PR_GET_ENDIAN:
...@@ -2153,7 +2151,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, ...@@ -2153,7 +2151,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
break; break;
case PR_GET_CHILD_SUBREAPER: case PR_GET_CHILD_SUBREAPER:
error = put_user(me->signal->is_child_subreaper, error = put_user(me->signal->is_child_subreaper,
(int __user *) arg2); (int __user *)arg2);
break; break;
case PR_SET_NO_NEW_PRIVS: case PR_SET_NO_NEW_PRIVS:
if (arg2 != 1 || arg3 || arg4 || arg5) if (arg2 != 1 || arg3 || arg4 || arg5)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment