From 355ca1ad9df98ea86ef9b26198df6e3fd1dc3d16 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 23 Dec 2012 14:13:46 +0100 Subject: sptests/spintrcritical16: Fix NULL pointer access --- testsuites/sptests/spintrcritical16/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testsuites/sptests/spintrcritical16/init.c b/testsuites/sptests/spintrcritical16/init.c index 396445509d..4d551bae79 100644 --- a/testsuites/sptests/spintrcritical16/init.c +++ b/testsuites/sptests/spintrcritical16/init.c @@ -52,7 +52,10 @@ rtems_timer_service_routine test_release_from_isr( case_hit = true; (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( -- cgit v1.2.3