Kernel/arm7 - Tiny bugfix in NewKThread
authorJohn Hodge <[email protected]>
Tue, 27 Sep 2011 01:32:45 +0000 (09:32 +0800)
committerJohn Hodge <[email protected]>
Tue, 27 Sep 2011 01:32:45 +0000 (09:32 +0800)
Kernel/arch/arm7/proc.c

index 2ab7d46..f4025cc 100644 (file)
@@ -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;
        }       

UCC git Repository :: git.ucc.asn.au