diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-14 14:32:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-14 14:32:23 +0000 |
commit | 72dfb969aad8b960bb33ab69b58185429fd00b6c (patch) | |
tree | b34b48fd87c2791b4e6f2fa2b73be6f03e8075b8 /cpukit/rtems | |
parent | 2004-06-29 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-72dfb969aad8b960bb33ab69b58185429fd00b6c.tar.bz2 |
2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 651/core
* src/taskident.c: Add NULL check for id.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/rtems/src/taskident.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog index 6cffea629d..f6903001e7 100644 --- a/cpukit/rtems/ChangeLog +++ b/cpukit/rtems/ChangeLog @@ -1,3 +1,8 @@ +2004-07-14 Joel Sherrill <joel@OARcorp.com> + + PR 651/core + * src/taskident.c: Add NULL check for id. + 2004-06-29 Joel Sherrill <joel@OARcorp.com> PR 631/rtems diff --git a/cpukit/rtems/src/taskident.c b/cpukit/rtems/src/taskident.c index 7567112a94..12614fe206 100644 --- a/cpukit/rtems/src/taskident.c +++ b/cpukit/rtems/src/taskident.c @@ -54,6 +54,9 @@ rtems_status_code rtems_task_ident( { Objects_Name_to_id_errors status; + if ( !id ) + return RTEMS_INVALID_ADDRESS; + if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; return RTEMS_SUCCESSFUL; |