From 6be8a839ce5a759b3f94a15f02841d9f6138a633 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 18 Apr 2008 15:01:36 +0000 Subject: [PATCH] 2008-04-18 Joel Sherrill * posix/src/key.c: Include * posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process a NULL extension block. --- cpukit/ChangeLog | 6 ++++++ cpukit/posix/src/key.c | 1 + cpukit/posix/src/psignal.c | 2 ++ cpukit/rtems/src/tasks.c | 2 ++ 4 files changed, 11 insertions(+) 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 + + * posix/src/key.c: Include + * posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process + a NULL extension block. + 2008-04-17 Joel Sherrill * 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 #include #include +#include #include #include 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