diff options
Diffstat (limited to 'cpukit/rtems/src/timercreate.c')
-rw-r--r-- | cpukit/rtems/src/timercreate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/rtems/src/timercreate.c b/cpukit/rtems/src/timercreate.c index d00470fc9b..2a41411bc3 100644 --- a/cpukit/rtems/src/timercreate.c +++ b/cpukit/rtems/src/timercreate.c @@ -47,6 +47,9 @@ rtems_status_code rtems_timer_create( if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; + if ( !id ) + return RTEMS_INVALID_ADDRESS; + _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); |