summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-21 19:40:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-21 19:40:17 +0000
commit59f1bfe606a66ef574183d169b0cbfe06a18995a (patch)
tree4844ff441555c825f962cc9532e724e5d87a817a /cpukit/libmisc
parent2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-59f1bfe606a66ef574183d169b0cbfe06a18995a.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.c4
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;