From: John Hodge Date: Tue, 27 Sep 2011 01:32:45 +0000 (+0800) Subject: Kernel/arm7 - Tiny bugfix in NewKThread X-Git-Tag: rel0.11~46 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=327c86d2221d49994ad49ec0d1717444e04521b8;p=tpg%2Facess2.git Kernel/arm7 - Tiny bugfix in NewKThread --- diff --git a/Kernel/arch/arm7/proc.c b/Kernel/arch/arm7/proc.c index 2ab7d466..f4025cca 100644 --- a/Kernel/arch/arm7/proc.c +++ b/Kernel/arch/arm7/proc.c @@ -75,7 +75,7 @@ tTID Proc_NewKThread( void (*Fnc)(void*), void *Ptr ) if(!new) return -1; new->KernelStack = MM_NewKStack(0); - if(!new) { + if(!new->KernelStack) { // TODO: Delete thread return -1; }