kernel/ptrace.c: 2 blank lines, 2 sizeof parentheses
PATCH 1/1 kernel/ptrace.c: 2 blank lines, 2 sizeof parentheses
Fixed 4 checkpatch.pl warnings:
kernel/ptrace.c:270: WARNING: Missing a blank line after declarations kernel/ptrace.c:413: WARNING: Missing a blank line after declarations kernel/ptrace.c:841: WARNING: sizeof siginfo should be sizeof(siginfo)
kernel/ptrace.c:1140: WARNING: sizeof siginfo should be sizeof(siginfo)
Signed-off-by Ruben Carlo Benante <[email protected]>
--- kernel/ptrace.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
kernel/ptrace.c +4 -2
@@ -264,6 +264,7 @@ ok:bool ptrace_may_access (struct task_struct *task,unsigned int mode) {int err; +task_lock (task); err =__ptrace_may_access (task, mode);task_unlock (task);
@@ -407,6 +408,7 @@ static int ptrace_traceme(void)static int ignoring_children (struct sighand_struct *sigh) {int ret; +spin_lock (&sigh->siglock); ret = (sigh->action[SIGCHLD -1 ].sa.sa_handler ==SIG_IGN ) || (sigh->action[SIGCHLD -1 ].sa.sa_flags &SA_NOCLDWAIT );
@@ -835,7 +837,7 @@ int ptrace_request(struct task_struct *child, long request,break ;case PTRACE_SETSIGINFO : -if (copy_from_user (&siginfo, datavp,sizeof siginfo)) +if (copy_from_user (&siginfo, datavp,sizeof (siginfo))) ret = -EFAULT ;else ret =ptrace_setsiginfo (child, &siginfo);
@@ -1134,7 +1136,7 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,break ;case PTRACE_SETSIGINFO : -memset (&siginfo,0 ,sizeof siginfo); +memset (&siginfo,0 ,sizeof (siginfo));if (copy_siginfo_from_user32 ( &siginfo, (struct compat_siginfo __user *) datap)) ret = -EFAULT ;
Signature · 1 line
2.1.4