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 | |
parent | cfe2ababc0bf05af525025b0ac77a1b147a43f66 (diff) |
2011-01-21 Eric Norum <wenorum@lbl.gov>
* libmisc/capture/capture.c: Avoid using TCB of task just deleted.
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libmisc/capture/capture.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8dcad2c306..73a55cbb4d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-01-21 Eric Norum <wenorum@lbl.gov> + + * libmisc/capture/capture.c: Avoid using TCB of task just deleted. + 2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com> * posix/src/psignal.c: Back port patch from head to avoid derefencing 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; |