Scheduler: pop the interrupt state when returning early from load_user_task()

This commit is contained in:
apio 2022-10-13 21:23:51 +02:00
parent 26211bd49f
commit 9b3c7816a3

View File

@ -121,6 +121,7 @@ void Scheduler::load_user_task(const char* filename)
if (ELFLoader::check_elf_image_from_filesystem(filename) < 0)
{
kerrorln("Failed to load %s from initrd", filename);
Interrupts::pop();
return;
}
Task* new_task = new Task;