diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:31:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:31:34 +0000 |
commit | cfe2ababc0bf05af525025b0ac77a1b147a43f66 (patch) | |
tree | 5cce31e2f23506c0c93e9f3f6bb14996be239093 /cpukit/posix | |
parent | 2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-cfe2ababc0bf05af525025b0ac77a1b147a43f66.tar.bz2 |
2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/psignal.c: Back port patch from head to avoid derefencing
NULL.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/psignal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c index dacf169626..3040718874 100644 --- a/cpukit/posix/src/psignal.c +++ b/cpukit/posix/src/psignal.c @@ -117,12 +117,10 @@ void _POSIX_signals_Post_switch_extension( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; /* - * api cannot be NULL or we would not have registered this API extension. + * api may be NULL in case of a thread close in progress */ - #if defined(RTEMS_DEBUG) - if ( !api ) + if ( !api ) return; - #endif /* * If we invoke any user code, there is the possibility that |