diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:28 +0000 |
commit | a7c4e405643bf5435f42e29684dac4127d77f298 (patch) | |
tree | a4c91b2b61c4e7d4bb4135cb6644bcff912fa769 /cpukit/libmisc | |
parent | 2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-a7c4e405643bf5435f42e29684dac4127d77f298.tar.bz2 |
2011-01-21 Eric Norum <wenorum@lbl.gov>
* libmisc/capture/capture.c: Avoid using TCB of task just deleted.
Diffstat (limited to 'cpukit/libmisc')
-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 fb81811408..c8a18fc98e 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -909,7 +909,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; |