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 b0ace60ce596..7c76f2ffaeaa 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -169,7 +169,7 @@ int ptrace_attach(struct task_struct *task) | |||
169 | retval = -EPERM; | 169 | retval = -EPERM; |
170 | if (task->pid <= 1) | 170 | if (task->pid <= 1) |
171 | goto out; | 171 | goto out; |
172 | if (task->tgid == current->tgid) | 172 | if (same_thread_group(task, current)) |
173 | goto out; | 173 | goto out; |
174 | 174 | ||
175 | repeat: | 175 | repeat: |