summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-25 18:13:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-25 18:13:49 +0000
commite8cdda4f11b99d6249f00344a397df721ae3f142 (patch)
treebcbb5e4f2f0fe9f3e807ebb779e535fa29d5a456 /c/src/exec/rtems
parentAdded to comment header block to include new status directive. (diff)
downloadrtems-e8cdda4f11b99d6249f00344a397df721ae3f142.tar.bz2
Corrected by adding check for NULL address passed into get_status
directive.
Diffstat (limited to 'c/src/exec/rtems')
-rw-r--r--c/src/exec/rtems/src/ratemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/ratemon.c b/c/src/exec/rtems/src/ratemon.c
index 922e8e7048..2832e652e1 100644
--- a/c/src/exec/rtems/src/ratemon.c
+++ b/c/src/exec/rtems/src/ratemon.c
@@ -238,6 +238,9 @@ rtems_status_code rtems_rate_monotonic_get_status(
Objects_Locations location;
Rate_monotonic_Control *the_period;
+ if ( status == NULL )
+ return RTEMS_INVALID_ADDRESS;
+
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_ERROR: