aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/litmus.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/litmus.c')
-rw-r--r--litmus/litmus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index c4f899510900..38f276d67095 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -368,12 +368,12 @@ void litmus_exit_task(struct task_struct* tsk)
368 368
369 litmus->task_exit(tsk); 369 litmus->task_exit(tsk);
370 370
371 BUG_ON(bheap_node_in_heap(tsk_rt(tsk)->heap_node)); 371 if (!bheap_node_in_heap(tsk_rt(tsk)->heap_node)) {
372 bheap_node_free(tsk_rt(tsk)->heap_node); 372 bheap_node_free(tsk_rt(tsk)->heap_node);
373 release_heap_free(tsk_rt(tsk)->rel_heap); 373 release_heap_free(tsk_rt(tsk)->rel_heap);
374 374 atomic_dec(&rt_task_count);
375 atomic_dec(&rt_task_count); 375 reinit_litmus_state(tsk, 1);
376 reinit_litmus_state(tsk, 1); 376 }
377 } 377 }
378} 378}
379 379