Scheduler: pop the interrupt state when returning early from load_user_task()
This commit is contained in:
parent
26211bd49f
commit
9b3c7816a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user