From 4a6809e2dff6a8e2816f62a58857ee6774d79bb0 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 30 Apr 2026 19:10:51 +0100 Subject: [PATCH] sched: task: fix leftover invalid pmap pointer --- sched/task.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sched/task.c b/sched/task.c index a9f148f..6320a3f 100644 --- a/sched/task.c +++ b/sched/task.c @@ -376,6 +376,7 @@ void task_exit(int status) spin_lock(&self->t_handles_lock); pmap_switch(get_kernel_pmap()); + self->t_address_space->s_pmap = PMAP_INVALID; pmap_destroy(self->t_pmap); task_unlock(self);