From b0039951517bac558a7d39f3b2f30a03f98aa2fe Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 29 Aug 2010 19:50:33 +0000 Subject: 2010-08-29 Joel Sherrill * posix/src/killinfo.c: Ensure interested is non-NULL before using it. --- cpukit/posix/src/killinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix/src/killinfo.c') 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 ) ) { -- cgit v1.2.3