]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/ptrace.c
sched: don't clear PF_VCPU in scheduler
[linux-2.6-omap-h63xx.git] / kernel / ptrace.c
index b0ace60ce596c9b41ed3e397de35b05fd6b535e7..7c76f2ffaeaad78060cfb3223857a89c7a4ccb8f 100644 (file)
@@ -169,7 +169,7 @@ int ptrace_attach(struct task_struct *task)
        retval = -EPERM;
        if (task->pid <= 1)
                goto out;
-       if (task->tgid == current->tgid)
+       if (same_thread_group(task, current))
                goto out;
 
 repeat: