Merge branches 'acpi-drivers', 'acpi-pm', 'acpi-ec' and 'acpi-video'
[deliverable/linux.git] / kernel / ptrace.c
index c79b91d09e35a700374bedf3c9e9e815f378aa8a..d49bfa1e53e6b4131f1b660b249e12320ad50258 100644 (file)
@@ -73,12 +73,11 @@ void __ptrace_unlink(struct task_struct *child)
 {
        BUG_ON(!child->ptrace);
 
-       child->ptrace = 0;
        child->parent = child->real_parent;
        list_del_init(&child->ptrace_entry);
 
        spin_lock(&child->sighand->siglock);
-
+       child->ptrace = 0;
        /*
         * Clear all pending traps and TRAPPING.  TRAPPING should be
         * cleared regardless of JOBCTL_STOP_PENDING.  Do it explicitly.
This page took 0.065252 seconds and 5 git commands to generate.