diff --git a/kernel/src/thread/Scheduler.cpp b/kernel/src/thread/Scheduler.cpp index ee6fb844..20bbf9b9 100644 --- a/kernel/src/thread/Scheduler.cpp +++ b/kernel/src/thread/Scheduler.cpp @@ -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;