]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/kernel/ptrace.c
[IA64] find thread for user rbs address
[linux-2.6-omap-h63xx.git] / arch / ia64 / kernel / ptrace.c
index f1ec129ae3a1d3d1afb5887bfe1d1e29b61c018b..3f8918782e0c992721a1758c1f83e2446f5261fe 100644 (file)
@@ -607,7 +607,7 @@ find_thread_for_addr (struct task_struct *child, unsigned long addr)
         */
        list_for_each_safe(this, next, &current->children) {
                p = list_entry(this, struct task_struct, sibling);
-               if (p->mm != mm)
+               if (p->tgid != child->tgid)
                        continue;
                if (thread_matches(p, addr)) {
                        child = p;