diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 5105f5a6a2ce3d843affaed6130ef5eb873db87f..aaad0ec341948690d8d8cad7ad22ee0600035fad 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -687,8 +687,6 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data) goto out_put_task_struct; ret = arch_ptrace(child, request, addr, data); - if (ret < 0) - goto out_put_task_struct; out_put_task_struct: put_task_struct(child);