summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-21 19:40:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-01-21 19:40:37 +0000
commit3547ed63d85c3bb01fd2bcb1b05ccc4ff5b89d24 (patch)
treeea15a69257bb9bced6cb83925472c3e16eab70fb
parent2010-12-16 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-3547ed63d85c3bb01fd2bcb1b05ccc4ff5b89d24.tar.bz2
2011-01-21 Eric Norum <wenorum@lbl.gov>
* libmisc/capture/capture.c: Avoid using TCB of task just deleted.
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libmisc/capture/capture.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 18102e9544..0d44529c98 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.
+
2010-11-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1718/cpukit
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 15d84927e0..146a258a94 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -916,7 +916,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;