X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fthreads.c;h=fa6f6e0f57b4350c8120496861b9001c9dfcae46;hb=952891ddb96a341c0e24ecb7dec6361c7bbeaece;hp=4ab76ff6334f816d982c478bca97d132d84d52e7;hpb=d4e3d74bb9ed79be25604e30231cd64e7091fdc2;p=tpg%2Facess2.git diff --git a/Kernel/threads.c b/Kernel/threads.c index 4ab76ff6..fa6f6e0f 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -1291,7 +1291,7 @@ tThread *Threads_GetNextToRun(int CPU, tThread *Last) } // If we fall onto the same queue again, special handling is // needed - if( i == Last->Priority ) { + if( Last && i == Last->Priority ) { tThread *savedThread = thread; // Find the next unscheduled thread in the list