summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-14 14:32:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-07-14 14:32:06 +0000
commita0f29ca4fd4d2d036a622d554415ec65ce1fe1f4 (patch)
tree6e943eb8c754603bd416b277e2a20540fc0f05aa /cpukit
parent2004-06-29 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-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/ChangeLog5
-rw-r--r--cpukit/rtems/src/taskident.c3
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;