summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-09-28 07:40:34 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-09-28 07:40:34 +0000
commit6daba8105d69a0636474c3a401c263009669a41c (patch)
tree5eebaa34a56655fcdb1a483a52496ee44a9381b4 /cpukit
parent2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-6daba8105d69a0636474c3a401c263009669a41c.tar.bz2
2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
* posix/src/psignal.c: Fixed NULL pointer access.
Diffstat (limited to '')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/posix/src/psignal.c8
2 files changed, 7 insertions, 5 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index caca3608da..b0615eac1e 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * posix/src/psignal.c: Fixed NULL pointer access.
+
2010-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libfs/src/defaults/default_close.c: Return 0 instead of an error
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index 61b4e39602..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 )
- return;
- #endif
+ if ( !api )
+ return;
/*
* If we invoke any user code, there is the possibility that