diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-14 14:32:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2004-07-14 14:32:06 +0000 |
commit | a0f29ca4fd4d2d036a622d554415ec65ce1fe1f4 (patch) | |
tree | 6e943eb8c754603bd416b277e2a20540fc0f05aa /cpukit | |
parent | 2004-06-29 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-a0f29ca4fd4d2d036a622d554415ec65ce1fe1f4.tar.bz2 |
2004-07-14 Joel Sherrill <joel@OARcorp.com>
PR 651/core
* rtems/src/taskident.c: Add NULL check for id.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/rtems/src/taskident.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 0ff6bdf987..31d5c3d5e1 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2004-07-14 Joel Sherrill <joel@OARcorp.com> + + PR 651/core + * rtems/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 6438bf1db1..0f225795c1 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_or_id_lookup_errors status; + if ( !id ) + return RTEMS_INVALID_ADDRESS; + if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; return RTEMS_SUCCESSFUL; |