sptests/spintrcritical16: Fix NULL pointer access

This commit is contained in:
Sebastian Huber
2012-12-23 14:13:46 +01:00
parent 0ca6172722
commit 355ca1ad9d

View File

@@ -52,7 +52,10 @@ rtems_timer_service_routine test_release_from_isr(
case_hit = true; case_hit = true;
(void) rtems_semaphore_release( Semaphore ); (void) rtems_semaphore_release( Semaphore );
} }
_Thread_queue_Process_timeout( Main_TCB );
if ( Main_TCB->Wait.queue != NULL ) {
_Thread_queue_Process_timeout( Main_TCB );
}
} }
rtems_task Init( rtems_task Init(