cpu->proc_current cannot be NULL

This commit is contained in:
2026-03-20 23:54:04 +01:00
parent 187629b228
commit 7fa37ad6d7
8 changed files with 36 additions and 23 deletions

View File

@@ -480,8 +480,6 @@ DEFINE_SYSCALL (sys_exec_partial_fini) {
cpu->proc_run_q_count++;
list_append (cpu->proc_run_q, &target_proc->cpu_run_q_link);
if (cpu->proc_current == NULL)
cpu->proc_current = target_proc;
spin_unlock (&target_proc->lock, fp);
spin_unlock (&cpu->lock, fc);