diff options
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 5105f5a6a2ce..aaad0ec34194 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -687,8 +687,6 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data) | |||
687 | goto out_put_task_struct; | 687 | goto out_put_task_struct; |
688 | 688 | ||
689 | ret = arch_ptrace(child, request, addr, data); | 689 | ret = arch_ptrace(child, request, addr, data); |
690 | if (ret < 0) | ||
691 | goto out_put_task_struct; | ||
692 | 690 | ||
693 | out_put_task_struct: | 691 | out_put_task_struct: |
694 | put_task_struct(child); | 692 | put_task_struct(child); |