diff options
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index c25db863081d..c719bb9d79ab 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -470,6 +470,8 @@ asmlinkage long sys_ptrace(long request, long pid, long addr, long data) | |||
470 | lock_kernel(); | 470 | lock_kernel(); |
471 | if (request == PTRACE_TRACEME) { | 471 | if (request == PTRACE_TRACEME) { |
472 | ret = ptrace_traceme(); | 472 | ret = ptrace_traceme(); |
473 | if (!ret) | ||
474 | arch_ptrace_attach(current); | ||
473 | goto out; | 475 | goto out; |
474 | } | 476 | } |
475 | 477 | ||