[rtems commit] sptests/spintrcritical16: Fix NULL pointer access
Sebastian Huber
sebh at rtems.org
Wed Jan 2 15:29:35 UTC 2013
Module: rtems
Branch: master
Commit: 355ca1ad9df98ea86ef9b26198df6e3fd1dc3d16
Changeset: http://git.rtems.org/rtems/commit/?id=355ca1ad9df98ea86ef9b26198df6e3fd1dc3d16
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Dec 23 14:13:46 2012 +0100
sptests/spintrcritical16: Fix NULL pointer access
---
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 3964455..4d551ba 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(
More information about the vc
mailing list