summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskstart.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskstart.c')
-rw-r--r--cpukit/rtems/src/taskstart.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/rtems/src/taskstart.c b/cpukit/rtems/src/taskstart.c
index eca9b5795d..57dbfc83b9 100644
--- a/cpukit/rtems/src/taskstart.c
+++ b/cpukit/rtems/src/taskstart.c
@@ -43,6 +43,10 @@ rtems_status_code rtems_task_start(
ISR_lock_Context lock_context;
Status_Control status;
+ if ( entry_point == NULL ) {
+ return RTEMS_INVALID_ADDRESS;
+ }
+
the_thread = _Thread_Get( id, &lock_context );
if ( the_thread == NULL ) {