]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/ptrace.c
Change table chaining layout
[linux-2.6-omap-h63xx.git] / kernel / ptrace.c
index 66e99eb2d8a6d52db13a873fa1dbbc1d3dcaab4c..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:
@@ -444,8 +444,7 @@ struct task_struct *ptrace_get_task_struct(pid_t pid)
                return ERR_PTR(-EPERM);
 
        read_lock(&tasklist_lock);
-       child = find_task_by_pid_ns(pid,
-                       current->nsproxy->pid_ns);
+       child = find_task_by_vpid(pid);
        if (child)
                get_task_struct(child);