summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-29 19:50:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-29 19:50:33 +0000
commitb0039951517bac558a7d39f3b2f30a03f98aa2fe (patch)
tree3791f7eff9a6704bed37de4985f5ba3f4df233c8 /cpukit
parent2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-b0039951517bac558a7d39f3b2f30a03f98aa2fe.tar.bz2
2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/posix/src/killinfo.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 033c099ca3..5ddb100f0e 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,9 @@
2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
+ * posix/src/killinfo.c: Ensure interested is non-NULL before using it.
+
+2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
* libcsupport/src/privateenv.c: Add macro to test status when
RTEMS_DEBUG is enabled. Note than evaluation of root directory should
always work.
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c
index 2ae5857a6f..7f4f8d34ed 100644
--- a/cpukit/posix/src/killinfo.c
+++ b/cpukit/posix/src/killinfo.c
@@ -265,7 +265,7 @@ int killinfo(
* If the interested thread is ready, don't think about changing.
*/
- if ( !_States_Is_ready( interested->current_state ) ) {
+ if ( interested && !_States_Is_ready( interested->current_state ) ) {
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {