diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:17 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-01-21 19:40:17 +0000 |
commit | 59f1bfe606a66ef574183d169b0cbfe06a18995a (patch) | |
tree | 4844ff441555c825f962cc9532e724e5d87a817a /cpukit | |
parent | 2011-01-21 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-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')
-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 21313b4079..46a6918919 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 Sebastian Huber <sebastian.huber@embedded-brains.de> * libblock/src/blkdev-ops.c: New file. 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; |