Skip to content
Snippets Groups Projects
Commit 0f40d68f authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

RTS: -Ds - make sure incall is non-zero before dereferencing it.

Fixes #24445
parent 1387966a
No related branches found
No related tags found
No related merge requests found
......@@ -495,7 +495,7 @@ giveCapabilityToTask (Capability *cap USED_IF_DEBUG, Task *task)
ASSERT_LOCK_HELD(&cap->lock);
ASSERT(task->cap == cap);
debugTrace(DEBUG_sched, "passing capability %d to %s %#" FMT_HexWord64,
cap->no, task->incall->tso ? "bound task" : "worker",
cap->no, task->incall && task->incall->tso ? "bound task" : "worker",
serialisableTaskId(task));
ACQUIRE_LOCK(&task->lock);
if (task->wakeup == false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment