]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/fork.c
[PATCH] mutex subsystem, debugging code
[linux-2.6-omap-h63xx.git] / kernel / fork.c
index 72e3252c6763400fea40a4f387a780627d2cbbf7..b18d64554feb7e48f1cbde8e2d58bafd52af1f04 100644 (file)
@@ -979,6 +979,10 @@ static task_t *copy_process(unsigned long clone_flags,
        }
 #endif
 
+#ifdef CONFIG_DEBUG_MUTEXES
+       p->blocked_on = NULL; /* not blocked yet */
+#endif
+
        p->tgid = p->pid;
        if (clone_flags & CLONE_THREAD)
                p->tgid = current->tgid;