]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/avr32/kernel/process.c
avr32: Fix OCD refcounting bug
[linux-2.6-omap-h63xx.git] / arch / avr32 / kernel / process.c
index faf8d0e7680148e5a0afb61c12e44cd53ea16e6e..7f4af0b1e111448f4941fbb7d3ae94589f13a961 100644 (file)
@@ -348,6 +348,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
        p->thread.cpu_context.ksp = (unsigned long)childregs;
        p->thread.cpu_context.pc = (unsigned long)ret_from_fork;
 
+       clear_tsk_thread_flag(p, TIF_DEBUG);
        if ((clone_flags & CLONE_PTRACE) && test_thread_flag(TIF_DEBUG))
                ocd_enable(p);