From 9b1eef8a6448259ca58ea00ccba7229ad0f2f0f7 Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 17 Feb 2021 14:08:43 +0100 Subject: [PATCH] sched: fix accidental double ptr bug --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched.c b/kernel/sched.c index 4f12f58..a4eb8f9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -72,7 +72,7 @@ void *sched_process_switch(void *curr_sp) while (1) { nextpid++; nextpid %= CONFIG_SCHED_MAXTASK; - tmp = &_sched_tasktab[nextpid]; + tmp = _sched_tasktab[nextpid]; if (tmp != NULL && sched_task_should_run(_sched_current_task)) { _sched_current_task = tmp; break;