summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/killinfo.c
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/posix/src/killinfo.c
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/posix/src/killinfo.c')
-rw-r--r--cpukit/posix/src/killinfo.c2
1 files changed, 1 insertions, 1 deletions
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 ) ) {