rt: Don't access fields on null supervisor task

This commit is contained in:
Brian Anderson 2012-02-01 16:46:11 -08:00
parent f76e6c39f6
commit 4eb92d4177

View File

@ -482,11 +482,11 @@ rust_task::fail_parent() {
void
rust_task::unsupervise()
{
DLOG(sched, task,
if (supervisor) {
DLOG(sched, task,
"task %s @0x%" PRIxPTR
" disconnecting from supervisor %s @0x%" PRIxPTR,
name, this, supervisor->name, supervisor);
if (supervisor) {
supervisor->deref();
}
supervisor = NULL;