[PATCH] pi-futex: futex_lock_pi/futex_unlock_pi support
[linux-2.6-block.git] / kernel / fork.c
index b664a081fffa07f179b2af22350c992311563436..628198a4f28a722b25b37c26ecbd401c67919a8d 100644 (file)
@@ -1092,6 +1092,9 @@ static task_t *copy_process(unsigned long clone_flags,
 #ifdef CONFIG_COMPAT
        p->compat_robust_list = NULL;
 #endif
+       INIT_LIST_HEAD(&p->pi_state_list);
+       p->pi_state_cache = NULL;
+
        /*
         * sigaltstack should be cleared when sharing the same VM
         */