diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 033c099ca3..5ddb100f0e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2010-08-29 Joel Sherrill + + * posix/src/killinfo.c: Ensure interested is non-NULL before using it. + 2010-08-29 Joel Sherrill * libcsupport/src/privateenv.c: Add macro to test status when 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 ) ) {