From 10347b9ae8cc1e12019a74f2b0d8559efbc1ea84 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Oct 2018 15:11:29 +0200 Subject: [PATCH] Add ASSERT_INTERRUPTS_DISABLED in Task::fromPID(). --- Kernel/Task.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/Task.cpp b/Kernel/Task.cpp index b083698a94..5a64e76fc7 100644 --- a/Kernel/Task.cpp +++ b/Kernel/Task.cpp @@ -647,6 +647,7 @@ static bool contextSwitch(Task* t) Task* Task::fromPID(pid_t pid) { + ASSERT_INTERRUPTS_DISABLED(); for (auto* task = s_tasks->head(); task; task = task->next()) { if (task->pid() == pid) return task;