diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:47 +0000 |
commit | efddd4fc6285d726dfba44e875f36a42ee98bbe4 (patch) | |
tree | abddbef8f19000c01d66e0623fc05273d913ea60 /cpukit/libmisc/capture/capture.c | |
parent | b2d8a9f477302e036854bf50c9a2b374e203b130 (diff) |
2011-01-21 Eric Norum <wenorum@lbl.gov>rtems-4-8-branch
* libmisc/capture/capture.c: Avoid using TCB of task just deleted.
Diffstat (limited to 'cpukit/libmisc/capture/capture.c')
-rw-r--r-- | cpukit/libmisc/capture/capture.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c index e8c6396490..75b4b4160c 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -914,7 +914,9 @@ rtems_capture_switch_task (rtems_tcb* current_task, rtems_capture_task_t* ct; rtems_capture_task_t* ht; - if (_States_Is_transient (current_task->current_state)) + + if (_States_Is_transient (current_task->current_state) + || _States_Is_dormant (current_task->current_state)) { rtems_id ct_id = current_task->Object.id; |