diff options
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index b88d4186cd7a..17ee7e5a3451 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -470,7 +470,7 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data) | |||
470 | 470 | ||
471 | if (request == PTRACE_ATTACH) { | 471 | if (request == PTRACE_ATTACH) { |
472 | ret = ptrace_attach(child); | 472 | ret = ptrace_attach(child); |
473 | goto out; | 473 | goto out_put_task_struct; |
474 | } | 474 | } |
475 | 475 | ||
476 | ret = ptrace_check_attach(child, request == PTRACE_KILL); | 476 | ret = ptrace_check_attach(child, request == PTRACE_KILL); |