diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-23 14:13:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-01-02 16:31:55 +0100 |
commit | 355ca1ad9df98ea86ef9b26198df6e3fd1dc3d16 (patch) | |
tree | 4f6bf61c333ba39f628b2180ed916f078dcf2fcb /testsuites/sptests/spintrcritical16/init.c | |
parent | score: Add const qualifier (diff) | |
download | rtems-355ca1ad9df98ea86ef9b26198df6e3fd1dc3d16.tar.bz2 |
sptests/spintrcritical16: Fix NULL pointer access
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/spintrcritical16/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
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( |