summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-04-18 15:01:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-04-18 15:01:36 +0000
commit6be8a839ce5a759b3f94a15f02841d9f6138a633 (patch)
tree531a6812491021bd35c047d9980de83abe71b09e /cpukit
parent2008-04-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-6be8a839ce5a759b3f94a15f02841d9f6138a633.tar.bz2
2008-04-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/key.c: Include <limits.h> * posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process a NULL extension block.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/posix/src/key.c1
-rw-r--r--cpukit/posix/src/psignal.c2
-rw-r--r--cpukit/rtems/src/tasks.c2
4 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 191daf509e..8ff08b3cc6 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-18 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * posix/src/key.c: Include <limits.h>
+ * posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process
+ a NULL extension block.
+
2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/dummy/dummy.c, sapi/include/confdefs.h: Add checks for
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c
index 3b4776817b..42d2aeb805 100644
--- a/cpukit/posix/src/key.c
+++ b/cpukit/posix/src/key.c
@@ -17,6 +17,7 @@
#include <limits.h>
#include <pthread.h>
#include <string.h>
+#include <limits.h>
#include <rtems/system.h>
#include <rtems/score/thread.h>
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index 62500ba4a5..a6c096caa7 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -108,6 +108,8 @@ void _POSIX_signals_Post_switch_extension(
ISR_Level level;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
+ if ( !api )
+ return;
/*
* If we invoke any user code, there is the possibility that
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index cfa849c1ae..afde09a704 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -174,6 +174,8 @@ void _RTEMS_tasks_Post_switch_extension(
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
+ if ( !api )
+ return;
/*
* Signal Processing