From efddd4fc6285d726dfba44e875f36a42ee98bbe4 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 21 Jan 2011 19:40:47 +0000 Subject: 2011-01-21 Eric Norum * libmisc/capture/capture.c: Avoid using TCB of task just deleted. --- cpukit/ChangeLog | 4 ++++ cpukit/libmisc/capture/capture.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 1c057b3769..44c4ca0d2a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-01-21 Eric Norum + + * libmisc/capture/capture.c: Avoid using TCB of task just deleted. + 2010-11-16 Joel Sherrill PR 1718/cpukit diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c index e8c6396490..75b4b4160c 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -914,7 +914,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; -- cgit v1.2.3